Constants

Home, Up: Operators and Constants

 

Hypatia knows the following constants:

PI, TAU (PI times 2), E (Euler's number), and PHI (the "golden ratio").

 

You can also define your own constants -- this will be discussed in the context of variables, see page User-Defined Constants in chapter "Variables and User-Defined Constants".

 

The Values of Hypatia's Constants

PI = 3.141592653589793238

TAU = 6.28318530717958648

E = 2.718281828459045235

PHI = 1.618033988749894848

 

While Hypatia shows floating point numbers with up to 15 significant digits, Hypatia's internal accuracy is somewhat higher. Constants are defined with 19 digits to make calculation results as accurate as possible.

 

Home, Up: Operators and Constants, Prev: Pseudo Operators, Next: Pseudo Constants