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)

Scope  (4)

Rational numbers are not quadratic irrationals:

is a transcendental number:

QuadraticIrrationalQ threads element-wise over lists:

QuadraticIrrationalQ returns False if not given an explicit quadratic irrational:

Wolfram Research (2007), QuadraticIrrationalQ, Wolfram Language function, https://reference.wolfram.com/language/ref/QuadraticIrrationalQ.html.

Text

Wolfram Research (2007), QuadraticIrrationalQ, Wolfram Language function, https://reference.wolfram.com/language/ref/QuadraticIrrationalQ.html.

CMS

Wolfram Language. 2007. "QuadraticIrrationalQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/QuadraticIrrationalQ.html.

APA

Wolfram Language. (2007). QuadraticIrrationalQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/QuadraticIrrationalQ.html

BibTeX

@misc{reference.wolfram_2024_quadraticirrationalq, author="Wolfram Research", title="{QuadraticIrrationalQ}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/QuadraticIrrationalQ.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_quadraticirrationalq, organization={Wolfram Research}, title={QuadraticIrrationalQ}, year={2007}, url={https://reference.wolfram.com/language/ref/QuadraticIrrationalQ.html}, note=[Accessed: 22-December-2024 ]}