Skip to main content

Daml module

DA.Math

Math - Utility Math functions for Decimal

Functions

**

** : Decimal -> Decimal -> Decimal Take a power of a number Example: 2.0 ** 3.0 == 8.0.

sqrt

sqrt : Decimal -> Decimal Calculate the square root of a Decimal.

exp

exp : Decimal -> Decimal The exponential function. Example: exp 0.0 == 1.0

log

log : Decimal -> Decimal The natural logarithm. Example: log 10.0 == 2.30258509299

logBase

logBase : Decimal -> Decimal -> Decimal The logarithm of a number to a given base. Example: log 10.0 100.0 == 2.0

sin

sin : Decimal -> Decimal sin is the sine function

cos

cos : Decimal -> Decimal cos is the cosine function

tan

tan : Decimal -> Decimal tan is the tangent function

History

Added3.4.9