cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Create Function by ODEs solving

ValeryOchkov
24-Ruby IV

Create Function by ODEs solving

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

 

ACCEPTED SOLUTION

Accepted Solutions

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

 

 

 

View solution in original post

1 REPLY 1

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

 

 

 

Announcements

Top Tags