Simplest Rational - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Number Theory : Simplest Rational

NumberTheory

  

SimplestRational

  

compute the simplest rational number in a real interval

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

SimplestRational( a, b )

Parameters

a, b

-

realcons; real numbers with

Description

• 

The SimplestRational( a, b ) command computes the "simplest" rational number  such that  and .  It is "simplest" in the sense that  and  are as small as possible.  (Note that an integer is considered to be "simpler" than a non-integral rational.)

• 

If Maple is able to determine that , then an exception is raised.

Examples

(1)

(2)

(3)

(4)

(5)

Error, (in NumberTheory:-SimplestRational) first argument must be strictly less than the second

Compatibility

• 

The NumberTheory[SimplestRational] command was introduced in Maple 2017.

• 

For more information on Maple 2017 changes, see Updates in Maple 2017.

See Also

NumberTheory[ContinuedFraction]

type[realcons]

 


Download Help Document