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