Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/a/s/Assimulo-2.5.1/assimulo/examples/mech_system_pendulum.py   Assimulo(Download)
import numpy as N
import scipy.linalg as sl
from assimulo.solvers import IDA, ODASSL
 
 
def run_example(index, with_plots=True, with_test=False):
    my_pend_sys=pendulum()
    my_pend=my_pend_sys.generate_problem(index)
    my_pend.name='Index = {}'.format(index)
    dae_pend = IDA(my_pend) if index not in ('ovstab2','ovstab1') else ODASSL(my_pend)