Module artichoke_backend::extn::core::math[][src]

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.

Modules

mruby

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

trampoline

Glue between mruby FFI and ENV Rust implementation.

Structs

DomainError

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

Math

A handle to the Math module.

Constants

E

Euler’s number (e)

PI

Archimedes’ constant (π)