HP Forums

Full Version: HP Prime CAS programming
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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
(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.
Pages: 1 2
Reference URL's