Name

SPVM::Math - Mathematical Calculations

Description

Math class in SPVM has methods for mathematical calculations defined in math.h and complex.h in the C language.

Usage

use Math;

my $sin = Math->sin(Math->PI / 4);

my $cos = Math->cos(Math->PI / 4);

my $tan = Math->tan(Math->PI / 4);

# 1 + 2i
my $z = Math->complex(1, 2);

# i
my $i = Math->complex(0, 1);

# Euler's equation
my $euler_left = Math->cexp(Math->cmul($i, $z));
my $euler_right = Math->ccos($z) + Math->cmul($i, Math->csin($z));

Class Methods

abs

static method abs : int ($x : int);

Calculates the abusolute value of $x and return it.

acos

static method acos : double ($x : double);

Calls native acos function defined in math.h in the C language and returns its return value.

acosf

static method acosf : float ($x : float);

Calls native acosf function defined in math.h in the C language and returns its return value.

acosh

static method acosh : double ($x : double);

Calls native acosh function defined in math.h in the C language and returns its return value.

acoshf

static method acoshf : float ($x : float);

Calls native acoshf function defined in math.h in the C language and returns its return value.

asin

static method asin : double ($x : double);

Calls native asin function defined in math.h in the C language and returns its return value.

asinf

static method asinf : float ($x : float);

Calls native asinf function defined in math.h in the C language and returns its return value.

asinh

static method asinh : double ($x : double);

Calls native asinh function defined in math.h in the C language and returns its return value.

asinhf

static method asinhf : float ($x : float);

Calls native asinhf function defined in math.h in the C language and returns its return value.

atan

static method atan : double ($x : double);

Calls native atan function defined in math.h in the C language and returns its return value.

atan2

static method atan2 : double ($y : double, $x : double);

Calls native atan2 function defined in math.h in the C language and returns its return value.

atan2f

static method atan2f : float ($y : float, $x : float);

Calls native atan2f function defined in math.h in the C language and returns its return value.

atanf

static method atanf : float ($x : float);

Calls native atanf function defined in math.h in the C language and returns its return value.

atanh

static method atanh : double ($x : double);

Calls native atanh function defined in math.h in the C language and returns its return value.

atanhf

static method atanhf : float ($x : float);

Calls native atanhf function defined in math.h in the C language and returns its return value.

cabs

static method cabs : double ($z : Complex_2d);

Calls native cabs function defined in complex.h in the C language and returns its return value.

cabsf

static method cabsf : float ($z : Complex_2f);

Calls native cabsf function defined in complex.h in the C language and returns its return value.

cacos

static method cacos : Complex_2d ($z : Complex_2d);

Calls native cacos function defined in complex.h in the C language and returns its return value.

cacosf

static method cacosf : Complex_2f ($z : Complex_2f);

Calls native cacosf function defined in complex.h in the C language and returns its return value.

cacosh

static method cacosh : Complex_2d ($z : Complex_2d);

Calls native cacosh function defined in complex.h in the C language and returns its return value.

cacoshf

static method cacoshf : Complex_2f ($z : Complex_2f);

Calls native cacoshf function defined in complex.h in the C language and returns its return value.

cadd

static method cadd : Complex_2d ($z1 : Complex_2d, $z2 : Complex_2d);

Performs the addition operation on $z1 and $z2, and returns the resulting value.

caddf

static method caddf : Complex_2f ($z1 : Complex_2f, $z2 : Complex_2f);

Performs the addition operation on $z1 and $z2, and returns the resulting value.

carg

static method carg : double ($z : Complex_2d);

Calls native carg function defined in complex.h in the C language and returns its return value.

cargf

static method cargf : float ($z : Complex_2f);

Calls native cargf function defined in complex.h in the C language and returns its return value.

casin

static method casin : Complex_2d ($z : Complex_2d);

Calls native casin function defined in complex.h in the C language and returns its return value.

casinf

static method casinf : Complex_2f ($z : Complex_2f);

Calls native casinf function defined in complex.h in the C language and returns its return value.

casinh

static method casinh : Complex_2d ($z : Complex_2d);

Calls native casinh function defined in complex.h in the C language and returns its return value.

casinhf

static method casinhf : Complex_2f ($z : Complex_2f);

Calls native casinhf function defined in complex.h in the C language and returns its return value.

catan

static method catan : Complex_2d ($z : Complex_2d);

Calls native catan function defined in complex.h in the C language and returns its return value.

catanf

static method catanf : Complex_2f ($z : Complex_2f);

Calls native catanf function defined in complex.h in the C language and returns its return value.

catanh

static method catanh : Complex_2d ($z : Complex_2d);

Calls native catanh function defined in complex.h in the C language and returns its return value.

catanhf

static method catanhf : Complex_2f ($z : Complex_2f);

Calls native catanhf function defined in complex.h in the C language and returns its return value.

cbrt

static method cbrt : double ($x : double);

Calls native cbrt function defined in math.h in the C language and returns its return value.

cbrtf

static method cbrtf : float ($x : float);

Calls native cbrtf function defined in math.h in the C language and returns its return value.

ccos

static method ccos : Complex_2d ($z : Complex_2d);

Calls native ccos function defined in complex.h in the C language and returns its return value.

ccosf

static method ccosf : Complex_2f ($z : Complex_2f);

Calls native ccosf function defined in complex.h in the C language and returns its return value.

ccosh

static method ccosh : Complex_2d ($z : Complex_2d);

Calls native ccosh function defined in complex.h in the C language and returns its return value.

ccoshf

static method ccoshf : Complex_2f ($z : Complex_2f);

Calls native ccoshf function defined in complex.h in the C language and returns its return value.

cdiv

static method cdiv : Complex_2d ($z1 : Complex_2d, $z2 : Complex_2d);

Performs the divison operation on $z1 and $z2, and returns the resulting value.

cdivf

static method cdivf : Complex_2f ($z1 : Complex_2f, $z2 : Complex_2f);

Performs the divison operation on $z1 and $z2, and returns the resulting value.

ceil

static method ceil : double ($x : double);

Calls native ceil function defined in math.h in the C language and returns its return value.

ceilf

static method ceilf : float ($x : float);

Calls native ceilf function defined in math.h in the C language and returns its return value.

cexp

static method cexp : Complex_2d ($z : Complex_2d);

Calls native cexp function defined in complex.h in the C language and returns its return value.

cexpf

static method cexpf : Complex_2f ($z : Complex_2f);

Calls native cexpf function defined in complex.h in the C language and returns its return value.

clog

static method clog : Complex_2d ($z : Complex_2d);

Calls native clog function defined in complex.h in the C language and returns its return value.

clogf

static method clogf : Complex_2f ($z : Complex_2f);

Calls native clogf function defined in complex.h in the C language and returns its return value.

cmul

static method cmul : Complex_2d ($z1 : Complex_2d, $z2 : Complex_2d);

Performs the multiplication operation on $z1 and $z2, and returns the resulting value.

cmulf

static method cmulf : Complex_2f ($z1 : Complex_2f, $z2 : Complex_2f);

Performs the multiplication operation on $z1 and $z2, and returns the resulting value.

complex

static method complex : Complex_2d ($re : double, $im : double);

Creates a double complex value given the real number $re and the imaginary number $im and returns it.

complexf

static method complexf : Complex_2f ($re : float, $im : float);

Creates a float complex value given the real number $re and the imaginary number $im and returns it.

conj

static method conj : Complex_2d ($z : Complex_2d);

Calls native conj function defined in complex.h in the C language and returns its return value.

conjf

static method conjf : Complex_2f ($z : Complex_2f);

Calls native conjf function defined in complex.h in the C language and returns its return value.

copysign

static method copysign : double ($x : double, $y : double);

Calls native copysign function defined in math.h in the C language and returns its return value.

copysignf

static method copysignf : float ($x : float, $y : float);

Calls native copysignf function defined in math.h in the C language and returns its return value.

cos

static method cos : double ($x : double);

Calls native cos function defined in math.h in the C language and returns its return value.

cosf

static method cosf : float ($x : float);

Calls native cosf function defined in math.h in the C language and returns its return value.

cosh

static method cosh : double ($x : double);

Calls native cosh function defined in math.h in the C language and returns its return value.

coshf

static method coshf : float ($x : float);

Calls native coshf function defined in math.h in the C language and returns its return value.

cpow

static method cpow : Complex_2d ($z1 : Complex_2d, $z2 : Complex_2d);

Calls native cpow function defined in complex.h in the C language and returns its return value.

cpowf

static method cpowf : Complex_2f ($z1 : Complex_2f, $z2 : Complex_2f);

Calls native cpowf function defined in complex.h in the C language and returns its return value.

csin

static method csin : Complex_2d ($z : Complex_2d);

Calls native csin function defined in complex.h in the C language and returns its return value.

csinf

static method csinf : Complex_2f ($z : Complex_2f);

Calls native csinf function defined in complex.h in the C language and returns its return value.

csinh

static method csinh : Complex_2d ($z : Complex_2d);

Calls native csinh function defined in complex.h in the C language and returns its return value.

csinhf

static method csinhf : Complex_2f ($z : Complex_2f);

Calls native csinhf function defined in complex.h in the C language and returns its return value.

csqrt

static method csqrt : Complex_2d ($z : Complex_2d);

Calls native csqrt function defined in complex.h in the C language and returns its return value.

csqrtf

static method csqrtf : Complex_2f ($z : Complex_2f);

Calls native csqrtf function defined in complex.h in the C language and returns its return value.

csub

static method csub : Complex_2d ($z1 : Complex_2d, $z2 : Complex_2d);

Performs the subtraction operation on $z1 and $z2, and returns the resulting value.

csubf

static method csubf : Complex_2f ($z1 : Complex_2f, $z2 : Complex_2f);

Performs the subtraction operation on $z1 and $z2, and returns the resulting value.

cneg

static method cneg : Complex_2d ($z : Complex_2d);

Negates the sign of $z and returns it.

cnegf

static method cnegf : Complex_2f ($z : Complex_2f);

Negates the sign of $z and returns it.

ctan

static method ctan : Complex_2d ($z : Complex_2d);

Calls native ctan function defined in complex.h in the C language and returns its return value.

ctanf

static method ctanf : Complex_2f ($z : Complex_2f);

Calls native ctanf function defined in complex.h in the C language and returns its return value.

ctanh

static method ctanh : Complex_2d ($z : Complex_2d);

Calls native ctanh function defined in complex.h in the C language and returns its return value.

ctanhf

static method ctanhf : Complex_2f ($z : Complex_2f);

Calls native ctanhf function defined in complex.h in the C language and returns its return value.

E

static method E : double ();

Returns the Euler's number e. This value is 0x1.5bf0a8b145769p+1.

erf

static method erf : double ($x : double);

Calls native erf function defined in math.h in the C language and returns its return value.

erfc

static method erfc : double ($x : double);

Calls native erfc function defined in math.h in the C language and returns its return value.

erfcf

static method erfcf : float ($x : float);

Calls native erfcf function defined in math.h in the C language and returns its return value.

erff

static method erff : float ($x : float);

Calls native erff function defined in math.h in the C language and returns its return value.

exp

static method exp : double ($x : double);

Calls native exp function defined in math.h in the C language and returns its return value.

exp2

static method exp2 : double ($x : double);

Calls native exp2 function defined in math.h in the C language and returns its return value.

exp2f

static method exp2f : float ($x : float);

Calls native exp2f function defined in math.h in the C language and returns its return value.

expf

static method expf : float ($x : float);

Calls native expf function defined in math.h in the C language and returns its return value.

expm1

static method expm1 : double ($x : double);

Calls native expm1 function defined in math.h in the C language and returns its return value.

expm1f

static method expm1f : float ($x : float);

Calls native expm1f function defined in math.h in the C language and returns its return value.

fabs

static method fabs : double ($x : double);

Calls native fabs function defined in math.h in the C language and returns its return value.

fabsf

static method fabsf : float ($x : float);

Calls native fabsf function defined in math.h in the C language and returns its return value.

fdim

static method fdim : double ($x : double, $y : double);

Calls native fdim function defined in math.h in the C language and returns its return value.

fdimf

static method fdimf : float ($x : float, $y : float);

Calls native fdimf function defined in math.h in the C language and returns its return value.

FE_DOWNWARD

static method FE_DOWNWARD : int ();

Returns the value of FE_DOWNWARD macro defined in fenv.h in the C language.

FE_TONEAREST

static method FE_TONEAREST : int ();

Returns the value of FE_TONEAREST macro defined in fenv.h in the C language.

FE_TOWARDZERO

static method FE_TOWARDZERO : int ();

Returns the value of FE_TOWARDZERO macro defined in fenv.h in the C language.

FE_UPWARD

static method FE_UPWARD : int ();

Returns the value of FE_UPWARD macro defined in fenv.h in the C language.

fesetround

static method fesetround : int ($round : int);

Calls native fesetround function defined in math.h in the C language and returns its return value.

floor

static method floor : double ($x : double);

Calls native floor function defined in math.h in the C language and returns its return value.

floorf

static method floorf : float ($x : float);

Calls native floorf function defined in math.h in the C language and returns its return value.

fma

static method fma : double ($x : double, $y : double, $x3 : double);

Calls native fma function defined in math.h in the C language and returns its return value.

fmaf

static method fmaf : float ($x : float, $y : float, $x3 : float);

Calls native fmaf function defined in math.h in the C language and returns its return value.

fmax

static method fmax : double ($x : double, $y : double);

Calls native fmax function defined in math.h in the C language and returns its return value.

fmaxf

static method fmaxf : float ($x : float, $y : float);

Calls native fmaxf function defined in math.h in the C language and returns its return value.

fmin

static method fmin : double ($x : double, $y : double);

Calls native fmin function defined in math.h in the C language and returns its return value.

fminf

static method fminf : float ($x : float, $y : float);

Calls native fminf function defined in math.h in the C language and returns its return value.

fmod

static method fmod : double ($x : double, $y : double);

Calls native fmod function defined in math.h in the C language and returns its return value.

fmodf

static method fmodf : float ($x : float, $y : float);

Calls native fmodf function defined in math.h in the C language and returns its return value.

FP_ILOGB0

static method FP_ILOGB0 : int ();

Return the value of FP_ILOGB0 macro defined in fenv.h in the C language.

FP_ILOGBNAN

static method FP_ILOGBNAN : int ();

Return the value of FP_ILOGBNAN macro defined in fenv.h in the C language.

FP_INFINITE

static method FP_INFINITE : int ();

Return the value of FP_INFINITE macro defined in fenv.h in the C language.

FP_NAN

static method FP_NAN : int ();

Return the value of FP_NAN macro defined in fenv.h in the C language.

FP_ZERO

static method FP_ZERO : int ();

Return the value of FP_ZERO macro defined in fenv.h in the C language.

fpclassify

static method fpclassify : int ($x : double);

Calls native fpclassify function defined in math.h in the C language.

fpclassifyf

static method fpclassifyf : int ($x : float);

Calls native fpclassify function defined in math.h in the C language.

frexp

static method frexp : double ($x : double, $exp_ref : int*);

Calls native frexp function defined in math.h in the C language and returns its return value.

Exceptions:

The reference of the exponent $exp_ref must be defined. Otherwise an exception is thrown.

frexpf

static method frexpf : float ($x : float, $exp_ref : int*);

Calls native frexpf function defined in math.h in the C language and returns its return value.

HUGE_VAL

static method HUGE_VAL : double ();

Returns the value of HUGE_VAL macro defined in math.h in the C language and returns its return value.

HUGE_VALF

static method HUGE_VALF : float ();

Returns the value of HUGE_VALF macro defined in math.h in the C language and returns its return value.

hypot

static method hypot : double ($x : double, $y : double);

Calls native hypot function defined in math.h in the C language and returns its return value.

hypotf

static method hypotf : float ($x : float, $y : float);

Calls native hypotf function defined in math.h in the C language and returns its return value.

ilogb

static method ilogb : int ($x : double);

Calls native ilogb function defined in math.h in the C language and returns its return value.

ilogbf

static method ilogbf : int ($x : float);

Calls native ilogbf function defined in math.h in the C language and returns its return value.

INFINITY

static method INFINITY : double ();

Returns the value of INFINITY macro defined in math.h in the C language, and returns the return value as a dobule value.

INFINITYF

static method INFINITYF : float ();

Returns the value of INFINITY macro defined in math.h in the C language, and the return value as a float value.

isfinite

static method isfinite : int ($x : double);

Calls native isfinite function defined in math.h in the C language.

isfinitef

static method isfinitef : int ($x : float);

Calls native isfinite function defined in math.h in the C language.

isgreater

static method isgreater : int ($x : double, $y : double);

Calls native isgreater function defined in math.h in the C language.

isgreaterequal

static method isgreaterequal : int ($x : double, $y : double);

Calls native isgreaterequal function defined in math.h in the C language.

isgreaterequalf

static method isgreaterequalf : int ($x : float, $y : float);

Calls native isgreaterequal function defined in math.h in the C language.

isgreaterf

static method isgreaterf : int ($x : float, $y : float);

Calls native isgreater function defined in math.h in the C language.

isinf

static method isinf : int ($x : double);

Calls native isinf function defined in math.h in the C language.

isinff

static method isinff : int($x : float);

Calls native isinf function defined in math.h in the C language.

isless

static method isless : int ($x : double, $y : double);

Calls native isless function defined in math.h in the C language.

islessequal

static method islessequal : int ($x : double, $y : double);

Calls native islessequal function defined in math.h in the C language.

islessequalf

static method islessequalf : int ($x : float, $y : float);

Calls native islessequal function defined in math.h in the C language.

islessf

static method islessf : int ($x : float, $y : float);

Calls native isless function defined in math.h in the C language.

islessgreater

static method islessgreater : int ($x : double, $y : double);

Calls native islessgreater function defined in math.h in the C language.

islessgreaterf

static method islessgreaterf : int ($x : float, $y : float);

Calls native islessgreater function defined in math.h in the C language.

isnan

static method isnan : int ($x : double);

Calls native isnan function defined in math.h in the C language.

isnanf

static method isnanf : int ($x : float);

Calls native isnanf function defined in math.h in the C language.

isunordered

static method isunordered : int ($x : double, $y : double);

Calls native isunordered function defined in math.h in the C language.

isunorderedf

static method isunorderedf : int ($x : float, $y : float);

Calls native isunordered function defined in math.h in the C language.

labs

static method labs : long ($x : long);

Returns the abusolute value of $x.

ldexp

static method ldexp : double ($x : double, $exp : int);

Calls native ldexp function defined in math.h in the C language and returns its return value.

ldexpf

static method ldexpf : float ($x : float, $exp : int);

Calls native ldexpf function defined in math.h in the C language and returns its return value.

lgamma

static method lgamma : double ($x : double);

Calls native lgamma function defined in math.h in the C language and returns its return value.

lgammaf

static method lgammaf : float ($x : float);

Calls native lgammaf function defined in math.h in the C language and returns its return value.

log

static method log : double ($x : double);

Calls native log function defined in math.h in the C language and returns its return value.

log10

static method log10 : double ($x : double);

Calls native log10 function defined in math.h in the C language and returns its return value.

log10f

static method log10f : float ($x : float);

Calls native log10f function defined in math.h in the C language and returns its return value.

log1p

static method log1p : double ($x : double);

Calls native log1p function defined in math.h in the C language and returns its return value.

log1pf

static method log1pf : float ($x : float);

Calls native log1pf function defined in math.h in the C language and returns its return value.

log2

static method log2 : double ($x : double);

Calls native log2 function defined in math.h in the C language and returns its return value.

log2f

static method log2f : float ($x : float);

Calls native log2f function defined in math.h in the C language and returns its return value.

logb

static method logb : double ($x : double);

Calls native logb function defined in math.h in the C language and returns its return value.

logbf

static method logbf : float ($x : float);

Calls native logbf function defined in math.h in the C language and returns its return value.

logf

static method logf : float ($x : float);

Calls native logf function defined in math.h in the C language and returns its return value.

lround

static method lround : long ($x : double);

Calls native llround function defined in math.h in the C language and returns its return value.

lroundf

static method lroundf : long ($x : float);

Calls native llroundf function defined in math.h in the C language and returns its return value.

modf

static method modf : double ($x : double, $intpart_ref : double*);

Calls native modf function defined in math.h in the C language and returns its return value.

Exceptions:

The reference of the int part $intpart_ref must be defined. Otherwise an exception is thrown.

modff

static method modff : float ($x : float, $intpart_ref : float*);

Calls native modff function defined in math.h in the C language and returns its return value.

Exceptions:

The reference of the int part $intpart_ref must be defined. Otherwise an exception is thrown.

NAN

static method NAN : double ();

Returns the value of NAN macro defined in math.h in the C language.

nan

static method nan : double ($string : string);

Calls native nan function defined in math.h in the C language and returns its return value.

Exceptions:

The $string must be defined. Otherwise an exception is thrown.

NANF

static method NANF : float ();

Returns the value of NAN macro defined in math.h in the C language, and return the return value as a float type.

nanf

static method nanf : float ($string : string);

Calls native nanf function defined in math.h in the C language and returns its return value.

Exceptions:

The $string must be defined. Otherwise an exception is thrown.

nearbyint

static method nearbyint : double ($x : double);

Calls native nearbyint function defined in math.h in the C language and returns its return value.

nearbyintf

static method nearbyintf : float ($x : float);

Calls native nearbyintf function defined in math.h in the C language and returns its return value.

nextafter

static method nextafter : double ($x : double, $y : double);

Calls native nextafter function defined in math.h in the C language and returns its return value.

nextafterf

static method nextafterf : float ($x : float, $y : float);

Calls native nextafterf function defined in math.h in the C language and returns its return value.

nexttoward

static method nexttoward : double ($x : double, $y : double);

Calls native nexttoward function defined in math.h in the C language and returns its return value.

nexttowardf

static method nexttowardf : float ($x : float, $y : double);

Calls native nexttowardf function defined in math.h in the C language and returns its return value.

PI

static method PI : double ();

Returns pi. This value is 0x1.921fb54442d18p+1.

pow

static method pow : double ($x : double, $y : double);

Calls native pow function defined in math.h in the C language and returns its return value.

powf

static method powf : float ($x : float, $y : float);

Calls native powf function defined in math.h in the C language and returns its return value.

remainder

static method remainder : double ($x : double, $y : double);

Calls native remainder function defined in math.h in the C language and returns its return value.

remainderf

static method remainderf : float ($x : float, $y : float);

Calls native remainderf function defined in math.h in the C language and returns its return value.

remquo

static method remquo : double ($x : double, $y : double, $quo_ref : int*);

Calls native remquo function defined in math.h in the C language and returns its return value.

Exceptions:

The reference of the quotient part $quo_ref must be defined. Otherwise an exception is thrown.

remquof

static method remquof : float ($x : float, $y : float, $quo_ref : int*);

Calls native remquof function defined in math.h in the C language and returns its return value.

Exceptions:

The reference of the quotient part $quo_ref must be defined. Otherwise an exception is thrown.

round

static method round : double ($x : double);

Calls native round function defined in math.h in the C language and returns its return value.

roundf

static method roundf : float ($x : float);

Calls native roundf function defined in math.h in the C language and returns its return value.

scalbln

static method scalbln : double ($x : double, $exp : long);

Calls native scalbln function defined in math.h in the C language and returns its return value.

scalblnf

static method scalblnf : float ($x : float, $exp : long);

Calls native scalblnf function defined in math.h in the C language and returns its return value.

scalbn

static method scalbn : double ($x : double, $exp : int);

Calls native scalbn function defined in math.h in the C language and returns its return value.

scalbnf

static method scalbnf : float ($x : float, $exp : int);

Calls native scalbnf function defined in math.h in the C language and returns its return value.

signbit

static method signbit : int ($x : double);

Calls native signbit function defined in math.h in the C language and returns its return value.

signbitf

static method signbitf : int ($x : float);

Calls native signbit function defined in math.h in the C language and returns its return value.

sin

static method sin : double ($x : double);

Calls native sin function defined in math.h in the C language and returns its return value.

sinf

static method sinf : float ($x : float);

Calls native sinf function defined in math.h in the C language and returns its return value.

sinh

static method sinh : double ($x : double);

Calls native sinh function defined in math.h in the C language and returns its return value.

sinhf

static method sinhf : float ($x : float);

Calls native sinhf function defined in math.h in the C language and returns its return value.

sqrt

static method sqrt : double ($x : double);

Calls native sqrt function defined in math.h in the C language and returns its return value.

sqrtf

static method sqrtf : float ($x : float);

Calls native sqrtf function defined in math.h in the C language and returns its return value.

tan

static method tan : double ($x : double);

Calls native tan function defined in math.h in the C language and returns its return value.

tanf

static method tanf : float ($x : float);

Calls native tanf function defined in math.h in the C language and returns its return value.

tanh

static method tanh : double ($x : double);

Calls native tanh function defined in math.h in the C language and returns its return value.

tanhf

static method tanhf : float ($x : float);

Calls native tanhf function defined in math.h in the C language and returns its return value.

tgamma

static method tgamma : double ($x : double);

Calls native tgamma function defined in math.h in the C language and returns its return value.

tgammaf

static method tgammaf : float ($x : float);

Calls native tgammaf function defined in math.h in the C language and returns its return value.

trunc

static method trunc : double ($x : double);

Calls native trunc function defined in math.h in the C language and returns its return value.

truncf

static method truncf : float ($x : float);

Calls native truncf function defined in math.h in the C language and returns its return value.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License