32#if MRBC_USE_FLOAT && MRBC_USE_MATH
51static void c_math_acos(
struct VM *vm,
mrbc_value v[],
int argc)
59static void c_math_acosh(
struct VM *vm,
mrbc_value v[],
int argc)
67static void c_math_asin(
struct VM *vm,
mrbc_value v[],
int argc)
75static void c_math_asinh(
struct VM *vm,
mrbc_value v[],
int argc)
83static void c_math_atan(
struct VM *vm,
mrbc_value v[],
int argc)
91static void c_math_atan2(
struct VM *vm,
mrbc_value v[],
int argc)
99static void c_math_atanh(
struct VM *vm,
mrbc_value v[],
int argc)
107static void c_math_cbrt(
struct VM *vm,
mrbc_value v[],
int argc)
115static void c_math_cos(
struct VM *vm,
mrbc_value v[],
int argc)
123static void c_math_cosh(
struct VM *vm,
mrbc_value v[],
int argc)
131static void c_math_erf(
struct VM *vm,
mrbc_value v[],
int argc)
139static void c_math_erfc(
struct VM *vm,
mrbc_value v[],
int argc)
147static void c_math_exp(
struct VM *vm,
mrbc_value v[],
int argc)
155static void c_math_hypot(
struct VM *vm,
mrbc_value v[],
int argc)
163static void c_math_ldexp(
struct VM *vm,
mrbc_value v[],
int argc)
180static void c_math_log(
struct VM *vm,
mrbc_value v[],
int argc)
188static void c_math_log10(
struct VM *vm,
mrbc_value v[],
int argc)
196static void c_math_log2(
struct VM *vm,
mrbc_value v[],
int argc)
204static void c_math_sin(
struct VM *vm,
mrbc_value v[],
int argc)
212static void c_math_sinh(
struct VM *vm,
mrbc_value v[],
int argc)
220static void c_math_sqrt(
struct VM *vm,
mrbc_value v[],
int argc)
228static void c_math_tan(
struct VM *vm,
mrbc_value v[],
int argc)
236static void c_math_tanh(
struct VM *vm,
mrbc_value v[],
int argc)
283#include "_autogen_module_math.h"
void mrbc_init_module_math(void)
static double to_double(struct VM *vm, const mrbc_value *v)
void mrbc_raise(struct VM *vm, struct RClass *exc_cls, const char *msg)
int mrbc_set_class_const(const struct RClass *cls, mrbc_sym sym_id, mrbc_value *v)
Include at once the necessary header files.
#define mrbc_float_value(vm, n)
@ MRBC_TT_INTEGER
Integer.
struct RObject mrbc_value
Global configuration of mruby/c VM's.