Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add ops from Numerics::Basics
  • Loading branch information
coke committed Sep 17, 2013
1 parent 72c955f commit 108c2d6
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions docs/ops.markdown
Expand Up @@ -76,6 +76,69 @@ Return the negative of a number.

Subtract $r from $l, returning the result.

# Numeric Opcodes

## ceil
* `ceil_n(num $n)`
* `ceil_I(Any $n)`

Return the ceiling of a number.

## exp
* `exp_n(num $exponent)`
* `exp_I(Any $exponent)`

Return the value of `e` raised to $exponent;

## floor
* `floor_n(num $n)`
* `floor_I(Any $n)`

Return the floor of a number.

## inf
* `inf()`

Return infinity.

## isnanorinf
* `isnanorinf_n(num $n)`

Return truth value indicating if this number represents any of the special
values, postive infinity, negative infinity, or NaN.

## log
* `log_n(num $n)`
* `log_I(Any $n)`

Return the log base 10 of a number.

## ln
* `ln_n(num $n)`
* `ln_I(Any $n)`

Return the natural logarithm of a number.

## nan
* `nan()`

Return NaN.

## neginf
* `neginf()`

Return negative infinity.

## pow
* `pow_n(num $base, num $exponent)`
* `pow_I(Any $base, Any $exponent)`

Return the value of $base raised to $exponent;

## sqrt
* `sqrt_n(num $l, num $r)`
* `sqrt_I(Any $l, Any $r)`

# String Opcodes

## radix
Expand Down

0 comments on commit 108c2d6

Please sign in to comment.