Post Reply 
HP Prime CAS programming
08-29-2020, 11:25 AM
Post: #21
RE: HP Prime CAS programming
Have you tried:

CMD1:="diff(3*x^2+5*x,x,1)"

or

CAS.diff("3*x^2+5*x,x,1")

Both return 6*x+5

for me.

-road


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
08-29-2020, 07:13 PM
Post: #22
RE: HP Prime CAS programming
(08-29-2020 11:25 AM)roadrunner Wrote:  Have you tried:
CMD1:="diff(3*x^2+5*x,x,1)"
or
CAS.diff("3*x^2+5*x,x,1")
Both return 6*x+5
for me.
-road
Good point. In fact I left on purpose the example with the two "different" results, so it is possible to quickly imagine alternatives like yours or, e.g., if you implement a custom CAS function to be called this way, add an extra simplify() command if needed.

Ramón
Valladolid, Spain
TI-50, Casio fx-180P, HP48GX, HP50g, HP Prime G2
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 4 Guest(s)