HP Forums

Full Version: Lowest integer ratio
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does the HP Prime have a function that takes 2 numbers and gives their lowest integer ratio. If you put in 224 and 288 you would get 7 and 9 out.

It would be as simple as a/gcd(a,b),b/gcd(a,b). But quite often the HP Prime already has this type of thing.
If you want them separately, numer(a/b) and denom(a/b) in CAS return what you want.

If you only want the simplified fraction, just type it in CAS. Pressing Enter will return it fully simplified.

Warning: Be sure that CAS is set to Exact mode, and make sure that the inputs don't contain any decimal points.
That's great, thanks.
Reference URL's