Exponents and logarithms
This commit is contained in:
@@ -22,6 +22,14 @@ Gets the tan of input.
|
||||
|
||||
Returns base^power, for positive integer values of power. Returns 1 if power is non-positive (and thus is inaccurate for negative values of power).
|
||||
|
||||
### fun -double !exp -double &input
|
||||
|
||||
Finds exp($input), where exp(x)=e^x, e is Euler's number = 2.718281828...
|
||||
|
||||
### fun -double !ln -double &in
|
||||
|
||||
Finds the natural log (log_e) of $input, i.e. finds x such that e^x = $input, e is Euler's number = 2.718281828...
|
||||
|
||||
### fun -double !sqrt -double &input
|
||||
|
||||
Returns the positive value *x* that satisfies x^2 = input. Throws an error if input is negative.
|
||||
@@ -30,6 +38,10 @@ Returns the positive value *x* that satisfies x^2 = input. Throws an error if in
|
||||
|
||||
Returns *n* such that *n* is congruent to the input modulo $modulus, where *n* is at least 0 and less than $modulus.
|
||||
|
||||
### fun -double !abs -double &in
|
||||
|
||||
Returns the absolute value of *n*.
|
||||
|
||||
### fun -double !random -int &seed
|
||||
|
||||
Gets a random double in the domain [0,1), using a LCG. A seed is required.
|
||||
|
||||
Reference in New Issue
Block a user