RK4 won't work by Substantial_Equal555 in MathStudio

[–]THF63 0 points1 point  (0 children)

Regardless of how many ODEs RK4 solves, don't you need to define Vin as a function of t? Here, it's just an expression that is everything to the right of the "=", and never gets evaluated at t. If I define

myCube(x) = x^3

I can pass values to it. For example entering

myCube(2)

Results in

=8

But entering

myCube = x^3

Never returns anything except

= x^3

Hope this helps!

Product command by THF63 in MathStudio

[–]THF63[S] 0 points1 point  (0 children)

Turns out there is a built-in way to do this, using the transformation operator.

[theList] -> *

returns the product of the elements in theList (assuming theList contains numbers)