GoldenRatio¶
Status: Experimental
present and registered, but lightly documented and not yet covered by dedicated tests.
Description¶
GoldenRatio
is the golden ratio phi = (1 + Sqrt[5])/2, with numerical value
~= 1.61803.
GoldenRatio is the positive root of x^2 == x + 1. It is a mathematical
constant: it has attributes Constant and Protected, NumericQ[GoldenRatio]
is True, and D[GoldenRatio, x] is 0. N[GoldenRatio, prec] evaluates it to
any precision.
Examples¶
No verified examples yet for this function.
Implementation notes¶
- Attributes
Constant,Protected. `Attributes[GoldenRatio] = {Constant,
Attributes: Constant, Protected.
Implementation status¶
Experimental — present and registered, but lightly documented and not yet covered by dedicated tests.
References¶
- Source:
src/info.c - Specification:
docs/spec/builtins/mathematical-constants.md
Notes & additional examples¶
Worked examples¶
Notes¶
GoldenRatio is phi = (1 + Sqrt[5])/2, the positive root of x^2 == x + 1;
evaluating that polynomial at phi numerically returns 0.0, confirming the
defining relation. It has the simplest possible continued fraction [1; 1, 1, ...],
so FromContinuedFraction[{1, {1}}] recovers it exactly. Through Binet's formula
Fibonacci[n] == (phi^n - (1 - phi)^n)/Sqrt[5], the closed form at n = 15
rounds to 610 = Fibonacci[15]. It is a protected Constant (so
D[GoldenRatio, x] is 0) evaluated to any precision by N.