Skip to main content
24-Ruby IV
April 11, 2023
Solved

Create Function by ODEs solving

  • April 11, 2023
  • 1 reply
  • 816 views

I would like to Create Function by ODEs solving.

I can do it if I have one ODE - see please the picture

But if I have 3 ones - see please the attach Prime 6

y_t_k_Stone.png

 

Best answer by Werner_E

Here is one way to achieve that 2-argument function

Werner_E_0-1681186199113.png

But you have to keep in mind that the whole solve block gets recalculated from anew for every single time value you want to evaluate the function for - even though you don't change the initial velocity "v". So this function is not best suited for plotting as its really slooooow!.

A better way probably is to settle for one initial velocity "v", evaluate the solve block only once and assign the result to single argument functions:

Werner_E_1-1681186406022.png

Werner_E_2-1681187063429.png

 

 

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
April 11, 2023

Here is one way to achieve that 2-argument function

Werner_E_0-1681186199113.png

But you have to keep in mind that the whole solve block gets recalculated from anew for every single time value you want to evaluate the function for - even though you don't change the initial velocity "v". So this function is not best suited for plotting as its really slooooow!.

A better way probably is to settle for one initial velocity "v", evaluate the solve block only once and assign the result to single argument functions:

Werner_E_1-1681186406022.png

Werner_E_2-1681187063429.png