Reruk Honor Student
Honor Student
3 2 0 0
Message 1 of 5
287
Flag Post
HP Recommended

HP Prime showing square roots as fractions

HP Prime

If I enter a square root, it is showing as fractions. For example, it shows square root of 5 as 3940598/1762289 as well as 3010349/1346269. Is there anyway that I can make it so that the calculator only shows numbers as fractions if the fractions are exact rather than approximating fractions?

Tags (1)
4 REPLIES 4
PhD Student
PhD Student
497 484 79 143
Message 2 of 5
251
Flag Post
HP Recommended

HP Prime showing square roots as fractions

Is your Prime displaying those fractions immediately after performing the calculation, or are you pressing something else (for example the [a b/c] key) next?  Please tell us exactly what you press before seeing these results.  Otherwise we can't duplicate what you're seeing.

 

Are you seeing these fractions in Home view or in CAS view?

 

What is your current display mode (Standard? Fixed? Number of digits...)?

-Joe-
Reply
0 Kudos
Reruk Honor Student
Honor Student
3 2 0 0
Message 3 of 5
235
Flag Post
HP Recommended

HP Prime showing square roots as fractions

Sorry for not specifying. This is after I click a b/c. I tried it in both CAS and Home, and it shows the fractions. I do not want it to show fractions unless they are exact. I am in standard mode. 

Reply
0 Kudos
PhD Student
PhD Student
497 484 79 143
Message 4 of 5
223
Flag Post
HP Recommended

HP Prime showing square roots as fractions

The first press of [a b/c] in Home view displays the result of QPI(x), which is usually what you're looking for. See the built-in Help screen about QPI for more information about it.  (EDIT: If your Prime doesn't have the QPI function in its command set, then you are using an obsolete version of the firmware. Connect to the HP Connectivity Kit software ASAP and upgrade your Prime.)

 

However, the second press of [a b/c] in Home view displays the simplest fraction which is close to x. You can control the accuracy by setting different display modes.  For example, PI is displayed as 312689/99532 in Standard mode, but as 201/64 in Fixed 3 mode.

 

If x>1, then the third press of [a b/c] in Home view rewrites the previous fraction as a mixed number.

 

Pressing [a b/c] in CAS view always returns a fraction for x, but its accuracy is controlled by the current value of Epsilon (on the second page of the CAS Settings screen), not by the display setting.

 

Please note that the purpose of the [a b/c] key is to return user-adjustable approximations in fraction form.  In other words, if you want to find a fraction that's as simple as possible (smallest numerator and denominator) within a given range of x, then that's what [a b/c] does.  If you only want the original non-fractional form, press it only once in Home mode and you MIGHT get what you want, if Prime can figure it out.  Subsequent presses in Home, or any press in CAS, will always return a fraction. No, there is no way to disable that behavior, because acting that way is its stated purpose.

 

Disclaimer: I don't work for HP, but I created the algorithm that [a b/c] uses in Home view to generate its fraction outputs.

-Joe-
Reply
0 Kudos
Reruk Honor Student
Honor Student
3 2 0 0
Message 5 of 5
213
Flag Post
HP Recommended

HP Prime showing square roots as fractions

Thanks. I have 2 more questions. I tried getting the calculator to simplify the indefinite integral of 2xcos(x^2) but it isn’t working. Is this too complex or something? Also, I was wondering how to graph integrals because it does not work and just shows NaN in the table when I try in the Function app. 

Reply
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