Is there something like `list(Ixx, Iyy, ...)`?


On Mon, Jul 22, 2013 at 1:14 PM, Jason Moore <notifications@github.com>wrote:

> In illustrative_example_for_viz/simulate.py:
>
> > @@ -0,0 +1,23 @@
> > +#This script produces the numerical integration for the EoMs
> > +#generated by three_link_pendulum.py
> > +
> > +from three_link_pendulum import l, m, M, Ixx, Iyy, Izz, g, kane
> > +from scipy.integrate import odeint
> > +from code_gen import numeric_right_hand_side
> > +from numpy import radians, linspace, hstack, zeros, ones
> > +
> > +params = list(l) + list(m) + list(M) + list(Ixx) + list(Iyy) + list(Izz) + [g]
> > +
> > +param_vals = [10.0 for x in l] + [5.0 for x in m] + [10.0 for x in M] + \
> > +    [5.0 for x in list(Ixx) + list(Iyy) + list(Izz)] + [9.8]
>
> same as above
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/PythonDynamics/pydy_examples/pull/11/files#r5329241>
> .
>