Math constructor
Math({
- num? e,
- num? ln10,
- num? ln2,
- num? log2e,
- num? log10e,
- num? pi,
- num? sqrt12,
- num? sqrt2,
- num abs()?,
- num acos()?,
- num asin()?,
- num atan()?,
- num atan2()?,
- num ceil()?,
- num cos()?,
- num exp()?,
- num floor()?,
- num log()?,
- num max([])?,
- num min([])?,
- num pow()?,
- num random()?,
- num round()?,
- num sin()?,
- num sqrt()?,
- num tan()?,
- num clz32()?,
- num imul()?,
- num sign()?,
- num log10()?,
- num log2()?,
- num log1p()?,
- num expm1()?,
- num cosh()?,
- num sinh()?,
- num tanh()?,
- num acosh()?,
- num asinh()?,
- num atanh()?,
- num hypot([])?,
- num trunc()?,
- num fround()?,
- num cbrt()?,
Implementation
factory Math({
_i2.num? e,
_i2.num? ln10,
_i2.num? ln2,
_i2.num? log2e,
_i2.num? log10e,
_i2.num? pi,
_i2.num? sqrt12,
_i2.num? sqrt2,
_i2.num Function(_i2.num)? abs,
_i2.num Function(_i2.num)? acos,
_i2.num Function(_i2.num)? asin,
_i2.num Function(_i2.num)? atan,
_i2.num Function(
_i2.num,
_i2.num,
)? atan2,
_i2.num Function(_i2.num)? ceil,
_i2.num Function(_i2.num)? cos,
_i2.num Function(_i2.num)? exp,
_i2.num Function(_i2.num)? floor,
_i2.num Function(_i2.num)? log,
_i2.num Function([_i2.Iterable<_i2.dynamic>?])? max,
_i2.num Function([_i2.Iterable<_i2.dynamic>?])? min,
_i2.num Function(
_i2.num,
_i2.num,
)? pow,
_i2.num Function()? random,
_i2.num Function(_i2.num)? round,
_i2.num Function(_i2.num)? sin,
_i2.num Function(_i2.num)? sqrt,
_i2.num Function(_i2.num)? tan,
_i2.num Function(_i2.num)? clz32,
_i2.num Function(
_i2.num,
_i2.num,
)? imul,
_i2.num Function(_i2.num)? sign,
_i2.num Function(_i2.num)? log10,
_i2.num Function(_i2.num)? log2,
_i2.num Function(_i2.num)? log1p,
_i2.num Function(_i2.num)? expm1,
_i2.num Function(_i2.num)? cosh,
_i2.num Function(_i2.num)? sinh,
_i2.num Function(_i2.num)? tanh,
_i2.num Function(_i2.num)? acosh,
_i2.num Function(_i2.num)? asinh,
_i2.num Function(_i2.num)? atanh,
_i2.num Function([_i2.Iterable<_i2.dynamic>?])? hypot,
_i2.num Function(_i2.num)? trunc,
_i2.num Function(_i2.num)? fround,
_i2.num Function(_i2.num)? cbrt,
}) =>
Math._(
e: e,
ln10: ln10,
ln2: ln2,
log2e: log2e,
log10e: log10e,
pi: pi,
sqrt12: sqrt12,
sqrt2: sqrt2,
abs: abs == null ? null : _i6.allowInterop(abs),
acos: acos == null ? null : _i6.allowInterop(acos),
asin: asin == null ? null : _i6.allowInterop(asin),
atan: atan == null ? null : _i6.allowInterop(atan),
atan2: atan2 == null ? null : _i6.allowInterop(atan2),
ceil: ceil == null ? null : _i6.allowInterop(ceil),
cos: cos == null ? null : _i6.allowInterop(cos),
exp: exp == null ? null : _i6.allowInterop(exp),
floor: floor == null ? null : _i6.allowInterop(floor),
log: log == null ? null : _i6.allowInterop(log),
max: max == null
? null
: _i6.allowInterop(([
a0,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
]) =>
max([
a0,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
])),
min: min == null
? null
: _i6.allowInterop(([
a0,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
]) =>
min([
a0,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
])),
pow: pow == null ? null : _i6.allowInterop(pow),
random: random == null ? null : _i6.allowInterop(random),
round: round == null ? null : _i6.allowInterop(round),
sin: sin == null ? null : _i6.allowInterop(sin),
sqrt: sqrt == null ? null : _i6.allowInterop(sqrt),
tan: tan == null ? null : _i6.allowInterop(tan),
clz32: clz32 == null ? null : _i6.allowInterop(clz32),
imul: imul == null ? null : _i6.allowInterop(imul),
sign: sign == null ? null : _i6.allowInterop(sign),
log10: log10 == null ? null : _i6.allowInterop(log10),
log2: log2 == null ? null : _i6.allowInterop(log2),
log1p: log1p == null ? null : _i6.allowInterop(log1p),
expm1: expm1 == null ? null : _i6.allowInterop(expm1),
cosh: cosh == null ? null : _i6.allowInterop(cosh),
sinh: sinh == null ? null : _i6.allowInterop(sinh),
tanh: tanh == null ? null : _i6.allowInterop(tanh),
acosh: acosh == null ? null : _i6.allowInterop(acosh),
asinh: asinh == null ? null : _i6.allowInterop(asinh),
atanh: atanh == null ? null : _i6.allowInterop(atanh),
hypot: hypot == null
? null
: _i6.allowInterop(([
a0,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
]) =>
hypot([
a0,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
])),
trunc: trunc == null ? null : _i6.allowInterop(trunc),
fround: fround == null ? null : _i6.allowInterop(fround),
cbrt: cbrt == null ? null : _i6.allowInterop(cbrt),
);