PostgreSQL/Math Functions/exp
Версия от 13:45, 26 мая 2010; (обсуждение)
exp(dp or numeric) exponential
postgres=# -- exp(dp or numeric) exponential
postgres=#
postgres=# select exp(1.0);
exp
--------------------
2.7182818284590452
(1 row)
postgres=#
exp(x): Returns the e constant (2.71828...), to the power of 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=#