Expand description

The Ruby Math module.

The Math module contains module functions for basic trigonometric and transcendental functions. See class Float for a list of constants that define Ruby’s floating point accuracy.

You can use the Math module by accessing it in the interpreter. Math is globally available in the root namespace.

Math.hypot(3, 4)

This module implements the core math module with spinoso-math and re-exports some of its internals.


FFI glue between the Rust trampolines and the mruby C interpreter.

Glue between mruby FFI and ENV Rust implementation.


Error that indicates a math function evaluated to an out of range value.

A handle to the Math module.


Euler’s number (e)

Archimedes’ constant (π)