PHI

Golden ratio.

The golden ratio can be defined algebraically as

Usage

var PHI = require( '@stdlib/constants/float64/phi' );

PHI

The golden ratio.

var bool = ( PHI === 1.618033988749895 );
// returns true

Examples

var PHI = require( '@stdlib/constants/float64/phi' );

console.log( PHI );
// => 1.618033988749895

C APIs

Usage

#include "stdlib/constants/float64/phi.h"

STDLIB_CONSTANT_FLOAT64_PHI

Macro for the golden ratio.

Did you find this page helpful?