Mega Code Archive

 
Categories / PostgreSQL / Math Functions
 

Exp(x)

postgres=# postgres=# -- exp(x): Returns the e constant (2.71828...), to the power of x postgres=# SELECT exp(0.0) AS one, postgres-#        exp(1.0) AS e, postgres-#        exp(2.0) AS "e squared";         one         |         e          |     e squared --------------------+--------------------+--------------------  1.0000000000000000 | 2.7182818284590452 | 7.3890560989306502 (1 row) postgres=#