This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Tutorial example showing how to use the implicit solver Radau5DAE. | |
It simulates a falling mass. | |
""" | |
import numpy as np | |
import pylab as plt | |
from assimulo.problem import Implicit_Problem #Imports the problem formulation from Assimulo | |
from assimulo.solvers import Radau5DAE #Imports the solver IDA from Assimulo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GLVisualize, GeometryTypes, Colors | |
using Reactive, GLAbstraction | |
window = glscreen() | |
timesignal = loop(linspace(0f0, 1f0, 360)) | |
large_sphere = HyperSphere(Point3f0(0), 1f0) | |
rotation_angle = const_lift(*, timesignal, 2f0*pi) | |
rotation = map(rotationmatrix_z, rotation_angle) |
This file has been truncated, but you can view the full file.
OlderNewer