cancel
Showing results for 
Search instead for 
Did you mean: 
Physics-is-here
New member
1 0 0 0
Message 1 of 3
966
Flag Post

Solved!

Hp prime can't integrate, "syntax error"

HP Recommended
HP prime Graphing Calculator

Hi, I'm having trouble integrating the function 2pi*sqrt(x)*(4-sqrt(x)) from 0 to 4. I tried to input this function in algebriac mode and in the textbook mode, both gives me "Syntax Error". I just bought it!!

 

20181211_200235.jpg

 

 

0 Kudos
2 REPLIES 2
Tim_Wessman
Level 8
Level 8
747 744 121 187
Message 2 of 3
Flag Post
HP Recommended

Hello,

 

The issue is attempting to use way too much implied multiplication. Only very limited implied multiplication is allowed in CAS - specifically something like <number><variable>. Even with that however...  Is "4abc" ...  4*abc, 4*a*bc, 4*a*b*c  or  4*ab*c? All are potentially valid in algebraic systems.

 

Put * instead of implying multiplaction and try it again. It will work for you then. Specifically, put * between the pi and first sqrt, and before the inner (4-sqrt(x)) and you will work fine.

 

Note that home numeric calcluations do not have this issue since they first check that EVERY variable it sees is already defined. It would immediately complain about not knowing if something was a variable or not.

 

Let us know if you have another issue.

 

TW

Although I work for the HP calculator group as a head developer of the HP Prime, the views and opinions I post here are my own.
0 Kudos
Maké
Level 9
3,551 3,490 180 541
Message 3 of 3
Flag Post
HP Recommended

Hi!, Physics-is-here :

Your result, is ...

Integrate.JPG

Is needed more decimals, configure Format.

In comparison with Wolfram Alpha ...

Integrate Wolfram.JPG

Kind Regards !.
Have a nice day !.
@Maké (Technical Advisor Premium - HP Program Top Contributor).
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
0 Kudos
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation