[HP Prime] Tips for Solving Differential Equations More Efficiently « Next Oldest | Next Newest »

 ▼ Chris Pem10 Member Posts: 59 Threads: 9 Joined: Nov 2013 11-21-2013, 02:52 PM I'd like to throw out a few ideas regarding solving differential equations on the Prime. 1. The tick mark used to denote differentiation of a function is too many keystrokes away (Shift -> Chars -> ' -> OK). In fact, it took quite a while to hunt it down. It is one keystroke on the HP48,50 and two strokes on the HP49. Perhaps I can redefine a key on the Prime? Bonus points: have the "Template" key pop up symbols/characters that are relevant to the function currently being entered on the stack. For instance, if I've chosen desolve(), have the template key display the tick mark along with the other things already displayed. 2. I'd like to plot the solution of desolve(). CAS mode uses lowercase variables and the plotter wants uppercase. I've tried limping along in the CAS, explicitly typing uppercase X for my variable... and it "works"; but I feel I'm abusing the way the CAS was meant to be used. I also feel that at some point I'll screw up and my calc will substitute a numerical value of X into my expression and I'll never be the wiser. So what I'd like to do is just use the CAS as intended; with lower case variables. I'd like to write a small app, lets call it "PlotCAS", that will copy my CAS expression off the CAS stack, replace all lower case x variables with X, and store the result in variable G7. Not sure if it's possible... "find and replace" method might end up clobbering any math functions whose name contained the letter x? Symbolic side of the calc may substitute 0, or the latest numeric value for X, for all instances of X after the substitution? Not expecting anyone here to program it for me... just want to know if it is feasible. ▼ Helge Gabert Member Posts: 113 Threads: 20 Joined: Sep 2013 11-21-2013, 05:46 PM Re: 2) You should be able to do just this: G7 := subst(here is your expression or equation, x='X') ▼ Chris Pem10 Member Posts: 59 Threads: 9 Joined: Nov 2013 11-21-2013, 09:08 PM The substitution of x='X' works, but the G7:= throws an error. I also tried subst(..., x='X') |> G7 but it didn't work either (the |> is my attempt to show Sto here). Only tested it on the stack; were you implying that it should work within a program? ▼ Helge Gabert Member Posts: 113 Threads: 20 Joined: Sep 2013 11-21-2013, 10:06 PM Sigh - - at least subst(. . . , x='X') works. I guess you'll just have to highlight the expression, copy, and then paste it into the graphing environment. or try something like A7:=' . . . '; that works. Does it need to be named G7? ▼ Chris Pem10 Member Posts: 59 Threads: 9 Joined: Nov 2013 11-22-2013, 12:42 PM No, needn't be G7. I thought that variable was used to store one of the expression to be graphed in the Function app. I was trying to sneak my expression into the app by saving it as one of the expressions loaded when the app is started. I'll have to do some reading to find out if that can be done. Perhaps variable F7 ? Yes, this works: F7:=subst(sin(x),x='X') results in F7(X)=SIN(X) being populated in the Function app. Thanks everyone. Edited: 22 Nov 2013, 12:48 p.m. ▼ CR Haeger Junior Member Posts: 37 Threads: 7 Joined: Sep 2013 11-23-2013, 09:25 AM F7:=subst(sin(x),x='X'). This seems to work okay in CAS. Is it possible to use this type of expression in the spreadsheet app? If so, it would be handy for PLOTTING CAS expressions generated in the spreadsheet. =F7:=subst(sin(x),x='X') and =Function.F7:=subst(sin(x),x='X') do not seem to store the symbolic expression in F7. Best, Carl Han Senior Member Posts: 709 Threads: 104 Joined: Nov 2005 11-22-2013, 12:20 AM Quote: The substitution of x='X' works, but the G7:= throws an error. I also tried subst(..., x='X') |> G7 but it didn't work either (the |> is my attempt to show Sto here). Only tested it on the stack; were you implying that it should work within a program? I believe G7 is a frame buffer (graphic object) used by the system. G0 is the current display, and G1 through G9 can be used as extra buffers. See DIMGROB and related commands. Tim Wessman Posting Freak Posts: 1,278 Threads: 44 Joined: Jul 2007 11-21-2013, 06:06 PM Re 1) SHIFT () BKSP TW ▼ Chris Pem10 Member Posts: 59 Threads: 9 Joined: Nov 2013 11-21-2013, 08:25 PM Quote: Re 1) SHIFT () BKSP TW Well I feel silly. Didn't know the little square with touchdown arms were tick marks.

 Possibly Related Threads... Thread Author Replies Views Last Post HP 41 Advanced Programming Tips Michael Fehlhammer 0 785 11-28-2013, 06:11 PM Last Post: Michael Fehlhammer HP-PRIME CAS SOLVING fabrice48 8 1,960 10-19-2013, 01:21 PM Last Post: Han HP Prime Solving Nonlinear System of Equations for Complex Results Helge Gabert 11 2,747 09-30-2013, 03:44 AM Last Post: From Hong Kong New article on a new type of neo linear equations Namir 0 942 08-11-2013, 10:27 AM Last Post: Namir OT: DIFFERENTIAL EQUATIONS using the HP-48G/GX Ivan Rancati 2 991 06-04-2013, 04:11 AM Last Post: Frank Boehm (Germany) HP-50g How to store many equations - help needed Timo Labrenz 5 1,484 03-03-2013, 12:22 PM Last Post: Timo Labrenz [WP34s et al.] Solving the TVM equation for the interest rate Dieter 24 3,905 12-01-2012, 05:53 AM Last Post: Paul Dale Solving with the built-in equations of the 35s Palmer O. Hanson, Jr. 4 1,013 10-17-2012, 03:17 PM Last Post: Dieter Equations library on WP34S Alessandro Castellani (Italy) 2 866 08-27-2012, 12:29 PM Last Post: Alessandro Castellani (Italy) system of equations question Don Shepherd 19 3,460 06-11-2012, 11:23 AM Last Post: Namir

Forum Jump: