QuadraticIrrationalQ

QuadraticIrrationalQ[x]

gives True if x is a quadratic irrational and False otherwise.

Details

  • QuadraticIrrationalQ[x] tests whether x can be expressed in the form , where , and are integers.
  • Quadratic irrationals have continued fractions that are ultimately periodic.

Examples

open allclose all

Basic Examples  (1)

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Scope  (4)

See Also

ContinuedFraction  Element  RootReduce

Introduced in 2007
(6.0)