HP Forums
Are there any rules for omitting the * operator in CAS - 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: Are there any rules for omitting the * operator in CAS (/thread-9290.html)



Are there any rules for omitting the * operator in CAS - webmasterpdx - 10-14-2017 03:44 AM

???
e.g. int(e^(-ax),x,0,infinity)
vs
int(e^(-a*x),x,0,infinity)

The first version gives a result of infinity, while the second is 1/a for RE(a)>0.

I've noticed that sometimes ax is accepted as a*x and since CAS doesn't report errors when an undefined variable is used, it's often hard to catch these kinds of errors.
Are there any rules for when ax is permissable over a*x ?
Thx
-Donald


RE: Are there any rules for omitting the * operator in CAS - parisse - 10-14-2017 06:21 AM

ax can never be used for a*x inside the CAS, because otherwise variable names would be restricted to one letter.
You can omit * in situations like number*variable: 2x is ok.
If you don't know, write a * : it won't hurt if you enter 2*x, and this is a good habit if you are going to program.