solving diff. equations on Prime vs 50g and 48G ? - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: solving diff. equations on Prime vs 50g and 48G ? (/thread-19634.html) |
solving diff. equations on Prime vs 50g and 48G ? - OlidaBel - 03-09-2023 12:36 PM Hi, In this 50G tutorial is explained how to solve differential equations with iterations : it's intuitive and can be done on the 48GX as well. https://www.ele.uri.edu/faculty/vetter/Other-stuff/HP-calculators/HP-50g/Training-modules/Solving%20differential%20equations.pdf It's computed numerically(kind of Runge Kutta?) step by step in a convenient way and it is said : "The most convenient way to numerically solve a differential equation is the built-in numeric differential equation solver and its input form" See last pages of this URL. The Example 2 is interesting : "A physical body moves under the influence of a constant force F in a viscous liquid. The differential equation of its motion is" etc. I wonder how this way of computing can be done on the HP Prime, numerically, step by step. Eddie has proposed a way to "mimics" DE numerical solving, in a creative way, inside the Geometry app : http://edspi31415.blogspot.com/2015/11/hp-prime-geometry-app-tutorial-part-5.html Any idea ? PS: I don't want here play with a symbolic CAS solution ;-) thanks, RE: solving diff. equations on Prime vs 50g and 48G ? - roadrunner - 03-09-2023 07:24 PM This: Syntax: odesolve(Expr, VectVar, VectInit, FinalVal, [tstep=Val, curve]) Ordinary Differential Equation solver Solves an ordinary differential equation given by Expr, with variables declared in VectVar and initial conditions for those variables declared in VectInit. For example, odesolve(f(t,y),[t,y],[t0,y0],t1) returns the approximate solution of y'=f(t,y) for the variables t and y with initial conditions t=t0 and y=y0. Example: odesolve(sin(t*y),[t,y],[0,1],2) → [1.82241255674] may be what you want. -road RE: solving diff. equations on Prime vs 50g and 48G ? - OlidaBel - 03-10-2023 11:06 AM (03-09-2023 07:24 PM)roadrunner Wrote: Example:Thanks Roadrunner. RE: solving diff. equations on Prime vs 50g and 48G ? - parisse - 03-12-2023 05:31 PM If you want the intermediate steps, add curve as last optional argument odesolve(sin(t*y),[t,y],[0,1],2,curve) Should also work for differential systems. RE: solving diff. equations on Prime vs 50g and 48G ? - OlidaBel - 03-13-2023 01:20 PM (03-12-2023 05:31 PM)parisse Wrote: If you want the intermediate steps, add curve as last optional argument ah oui, indeed. Merci M. Parisse ! Strange, t had a value here, and with the equation above, it gives an error; I was forced to "purge" t in order to make it working. RE: solving diff. equations on Prime vs 50g and 48G ? - jam - 10-13-2023 12:38 AM Can I use odesolve to solve a system of differential equations numerically? I know that you can plot the solution (or at least the phase plane) like the example included in the help of the function. RE: solving diff. equations on Prime vs 50g and 48G ? - parisse - 10-13-2023 06:31 AM Xcas online help has an example odesolve(0..pi,(t,v)->{[-v[1],v[0]]},[0,1]) Needs to be modified for the Prime since {} does not have the same meaning. I would try with BEGIN ... END instead. |