FLOAT32_PHI

Golden ratio.

The golden ratio can be defined algebraically as

Usage

var FLOAT32_PHI = require( '@stdlib/constants/float32/phi' );

FLOAT32_PHI

The golden ratio.

var bool = ( FLOAT32_PHI === 1.6180340051651 );
// returns true

Examples

var FLOAT32_PHI = require( '@stdlib/constants/float32/phi' );

console.log( FLOAT32_PHI );
// => 1.6180340051651

C APIs

Usage

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

STDLIB_CONSTANT_FLOAT32_PHI

Macro for the golden ratio.

Did you find this page helpful?