The golden ratio can be defined algebraically as
var PHI = require( '@stdlib/constants/float64/phi' );The golden ratio.
var bool = ( PHI === 1.618033988749895 );
// returns truevar PHI = require( '@stdlib/constants/float64/phi' );
console.log( PHI );
// => 1.618033988749895#include "stdlib/constants/float64/phi.h"Macro for the golden ratio.