How to calculate derivatives? - 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: How to calculate derivatives? (/thread-10211.html) |
How to calculate derivatives? - firedwheelman - 02-20-2018 11:16 AM I am having a hard time figuring out how to calculate derivatives on the HP Prime. Do I need to download a certain program or can I compute it directly in CAS mode? RE: How to calculate derivatives? - TheKaneB - 02-20-2018 04:55 PM On the first row of keys, under the black portion, you have the following keys: Vars, Tools and Templates (there are graphic icons, not actual words on them). Click the templates button, select the d/dx template and enter your function by filling up the template provided. Enjoy! [attachment=5701] In Home view you will get a numerical approximation, while in CAS mode if you have exact mode active you will get a symbolic answer. RE: How to calculate derivatives? - DrD - 02-20-2018 05:09 PM Also: You can use the diff() command (See help): diff(x^2+2*x+c,x) ==> 2*x+2 You can use the apostrophe: (x^2+2*x+c)' ==> 2*x+2 RE: How to calculate derivatives? - grsbanks - 02-20-2018 06:04 PM (02-20-2018 05:09 PM)DrD Wrote: You can use the apostrophe: (x^2+2*x+c)' ==> 2*x+2 You learn something new every day -- I never knew that! RE: How to calculate derivatives? - TheKaneB - 02-20-2018 10:01 PM That's very useful! In the function definition of the graph app it doesn't work though. You first have to define your f2:=f1' and then apply it to the graph app like F2(X) = f2(X) in the Symbolic view. RE: How to calculate derivatives? - cyrille de brébisson - 02-21-2018 06:50 AM Hello, ' for derivative is a CAS function, not a home function which is why it does not work in the plotting app. 2nd subtility. The "result" of the derivative function is a function, not the function evaluated at a point! So, if you define F2 in the symb view as der(F1(X),X) (with der being the derivative symbol), whenever F2 gets evaluated, the der function returns the derivated F1, NOT the numerical result of the evaluation of the derivative of F1! The proper syntax to get the VALUE of the derivative of a function at a point is: der(F1(Y),Y=X). Note, you could also enter der(F1(X),X=X), which is valid, but confusing to the human because you have 2 X variables here, one used for derivation and one as a numerical value replacement! Cyrille RE: How to calculate derivatives? - TheKaneB - 02-21-2018 10:32 AM Hi Cyrille, thank you for the insight! Really appreciated RE: How to calculate derivatives? - Aries - 02-22-2018 01:03 PM (02-20-2018 11:16 AM)firedwheelman Wrote: I am having a hard time figuring out how to calculate derivatives on the HP Prime. Do I need to download a certain program or can I compute it directly in CAS mode? Yes, in CAS Mode, there is also a specific template Best, Aries :-) |