QuadraticIrrationalQ

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

DetailsDetails

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