Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

PHI

Golden ratio.

The golden ratio can be defined algebraically as

$$\phi = \frac{1 + \sqrt{5}}{2}$$

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.