[HP Prime] Tips for Solving Differential Equations More Efficiently



#4

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.


#5

Re: 2) You should be able to do just this:

G7 := subst(here is your expression or equation, x='X')


#6

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?


#7

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?


#8

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.


#9

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

#10

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.

#11

Re 1)

SHIFT () BKSP

TW


#12

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 1,202 11-28-2013, 06:11 PM
Last Post: Michael Fehlhammer
  HP-PRIME CAS SOLVING fabrice48 8 2,912 10-19-2013, 01:21 PM
Last Post: Han
  HP Prime Solving Nonlinear System of Equations for Complex Results Helge Gabert 11 4,342 09-30-2013, 03:44 AM
Last Post: From Hong Kong
  New article on a new type of neo linear equations Namir 0 1,314 08-11-2013, 10:27 AM
Last Post: Namir
  OT: DIFFERENTIAL EQUATIONS using the HP-48G/GX Ivan Rancati 2 1,430 06-04-2013, 04:11 AM
Last Post: Frank Boehm (Germany)
  HP-50g How to store many equations - help needed Timo Labrenz 5 2,137 03-03-2013, 12:22 PM
Last Post: Timo Labrenz
  [WP34s et al.] Solving the TVM equation for the interest rate Dieter 24 6,175 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,526 10-17-2012, 03:17 PM
Last Post: Dieter
  Equations library on WP34S Alessandro Castellani (Italy) 2 1,232 08-27-2012, 12:29 PM
Last Post: Alessandro Castellani (Italy)
  system of equations question Don Shepherd 19 5,166 06-11-2012, 11:23 AM
Last Post: Namir

Forum Jump: