math¶
fun mlrandomchoice(Arg₁: any)TBD
meth (X: complex) ^ (Y: integer): numberReturns
Xraised to the power ofY.(1 + 2i) ^ 2 :> -3 + 4i
meth (X: complex) ^ (Y: number): numberReturns
Xraised to the power ofY.(1 + 2i) ^ (2 + 3i) :> -0.0151326724227227 - 0.179867483913335i
meth (Z: complex):abs: realReturns the absolute value (magnitude) of
Z.meth (Z: complex):arg: realReturns the complex argument of
Z.meth (Z: complex):conj: realReturns the complex conjugate of
Z.meth math::acos(Arg₁: complex): complexReturns
acos(Arg₁).math::acos(1.2345 + 6.789i) :> 1.39274491905556 - 2.62959948793467i math::acos(-1.2345 + 6.789i) :> 1.74884773453423 - 2.62959948793467i
meth math::acosh(Arg₁: complex): complexReturns
acosh(Arg₁).math::acosh(1.2345 + 6.789i) :> 2.62959948793467 + 1.39274491905556i math::acosh(-1.2345 + 6.789i) :> 2.62959948793467 + 1.74884773453423i
meth math::asin(Arg₁: complex): complexReturns
asin(Arg₁).math::asin(1.2345 + 6.789i) :> 0.178051407739337 + 2.62959948793467i math::asin(-1.2345 + 6.789i) :> -0.178051407739337 + 2.62959948793467i
meth math::asinh(Arg₁: complex): complexReturns
asinh(Arg₁).math::asinh(1.2345 + 6.789i) :> 2.61977023992049 + 1.38904733381322i math::asinh(-1.2345 + 6.789i) :> -2.61977023992049 + 1.38904733381322i
meth math::atan(Arg₁: complex): complexReturns
atan(Arg₁).math::atan(1.2345 + 6.789i) :> 1.54433788133329 + 0.143460974564643i math::atan(-1.2345 + 6.789i) :> -1.54433788133329 + 0.143460974564643i
meth math::atanh(Arg₁: complex): complexReturns
atanh(Arg₁).math::atanh(1.2345 + 6.789i) :> 0.0254155192875644 + 1.42907622916881i math::atanh(-1.2345 + 6.789i) :> -0.0254155192875644 + 1.42907622916881i
meth math::cos(Arg₁: complex): complexReturns
cos(Arg₁).math::cos(1.2345 + 6.789i) :> 146.521288000429 - 419.139907811584i math::cos(-1.2345 + 6.789i) :> 146.521288000429 + 419.139907811584i
meth math::cosh(Arg₁: complex): complexReturns
cosh(Arg₁).math::cosh(1.2345 + 6.789i) :> 1.63043250480246 + 0.762072763912413i math::cosh(-1.2345 + 6.789i) :> 1.63043250480246 - 0.762072763912413i
meth math::delta(Arg₁: complex, Arg₂: complex)TBD
meth math::exp(Arg₁: complex): complexReturns
exp(Arg₁).math::exp(1.2345 + 6.789i) :> 3.00632132754822 + 1.66513134304082i math::exp(-1.2345 + 6.789i) :> 0.254543682056692 + 0.140985815215994i
meth math::log(Arg₁: complex): complexReturns
log(Arg₁).math::log(1.2345 + 6.789i) :> 1.93156878648542 + 1.39092338385419i math::log(-1.2345 + 6.789i) :> 1.93156878648542 + 1.75066926973561i
meth math::log10(Arg₁: complex): complexReturns
log10(Arg₁).math::log10(1.2345 + 6.789i) :> 0.838869665387177 + 0.604070350358072i math::log10(-1.2345 + 6.789i) :> 0.838869665387177 + 0.76030600348377i
meth math::sin(Arg₁: complex): complexReturns
sin(Arg₁).math::sin(1.2345 + 6.789i) :> 419.14097082583 + 146.520916397013i math::sin(-1.2345 + 6.789i) :> -419.14097082583 + 146.520916397013i
meth math::sinh(Arg₁: complex): complexReturns
sinh(Arg₁).math::sinh(1.2345 + 6.789i) :> 1.37588882274576 + 0.903058579128407i math::sinh(-1.2345 + 6.789i) :> -1.37588882274576 + 0.903058579128407i
meth math::sqrt(Arg₁: complex): complexReturns
sqrt(Arg₁).math::sqrt(1.2345 + 6.789i) :> 2.01678294499314 + 1.68312609367665i math::sqrt(-1.2345 + 6.789i) :> 1.68312609367665 + 2.01678294499314i
meth math::square(C: complex): complexReturns
C * Cmath::square(1 + 2i) :> -3 + 4i
meth math::tan(Arg₁: complex): complexReturns
tan(Arg₁).math::tan(1.2345 + 6.789i) :> 1.58008203338542e-06 + 1.0000019838211i math::tan(-1.2345 + 6.789i) :> -1.58008203338542e-06 + 1.0000019838211i
meth math::tanh(Arg₁: complex): complexReturns
tanh(Arg₁).math::tanh(1.2345 + 6.789i) :> 0.905042091321087 + 0.130855248843389i math::tanh(-1.2345 + 6.789i) :> -0.905042091321087 + 0.130855248843389i
fun random::seed(Arg₁: integer)TBD
meth !(N: integer): integerReturns the factorial of
N.!10 :> 3628800
meth (N: integer) ! (R: integer): integerReturns the number of ways of choosing
Relements fromN.meth (X: integer) ^ (Y: integer): numberReturns
Xraised to the power ofY.let N := 2 ^ 2 :> 4 type(N) :> <<integer32>> let R := 2 ^ -1 :> 1/2 type(R) :> <<rational48>>
meth (Arg₁: integer) ^ (Arg₂: rational)TBD
meth (N: integer):abs: integerReturns the absolute value of
N.meth (N: integer):floor: integerReturns the floor of
N(= Nfor an integer).meth (A: integer):gcd(B: integer): integerReturns the greatest common divisor of
AandB.meth math::delta(Arg₁: integer, Arg₂: integer)TBD
meth math::sqrt(Arg₁: integer): integer | realReturns the square root of
Arg₁.meth math::square(N: integer): integerReturns
N * Nmath::square(10) :> 100
def math::e: realEuler's constant.
def math::pi: realPi.
meth (X: number) ^ (Y: complex): numberReturns
Xraised to the power ofY.2.3 ^ (1 + 2i) :> -0.218221674358723 + 2.28962427066977i
type random < functionTBD
type random::choice < functionTBD
meth (Arg₁: rational) ^ (Arg₂: integer)TBD
meth (Arg₁: rational) ^ (Arg₂: rational)TBD
meth math::delta(Arg₁: rational, Arg₂: rational)TBD
meth math::sqrt(Arg₁: rational): rational | realReturns the square root of
Arg₁.meth (X: real) % (Y: real): realReturns the remainder of
Xon division byY.meth (X: real) ^ (Y: integer): numberReturns
Xraised to the power ofY.2.3 ^ 2 :> 5.29
meth (X: real) ^ (Y: real): numberReturns
Xraised to the power ofY.let R := 2.3 ^ 1.5 :> 3.48812270426371 type(R) :> <<double>> let C := -2.3 ^ 1.5 :> -6.40757745721465e-16 - 3.48812270426371i type(C) :> <<complex::double>>
meth (R: real):arg: realReturns the complex argument of
R(= 0for a real number).meth (R: real):conj: realReturns the complex conjugate of
R(= Rfor a real number).meth math::abs(Arg₁: real): realReturns
abs(Arg₁).math::abs(1.2345) :> 1.2345 math::abs(-1.2345) :> 1.2345
meth math::acos(Arg₁: real): realReturns
acos(Arg₁).math::acos(1.2345) :> nan math::acos(-1.2345) :> nan
meth math::acosh(Arg₁: real): realReturns
acosh(Arg₁).math::acosh(1.2345) :> 0.672113366870564 math::acosh(-1.2345) :> -nan
meth math::asin(Arg₁: real): realReturns
asin(Arg₁).math::asin(1.2345) :> nan math::asin(-1.2345) :> nan
meth math::asinh(Arg₁: real): realReturns
asinh(Arg₁).math::asinh(1.2345) :> 1.03787350829816 math::asinh(-1.2345) :> -1.03787350829816
meth math::atan(Arg₁: real): realReturns
atan(Arg₁).math::atan(1.2345) :> 0.88996059643618 math::atan(-1.2345) :> -0.88996059643618
meth math::atan(Arg₁: real, Arg₂: real): realReturns
atan(Arg₂ / Arg₁).meth math::atanh(Arg₁: real): realReturns
atanh(Arg₁).math::atanh(1.2345) :> -nan math::atanh(-1.2345) :> -nan
meth math::cbrt(Arg₁: real): realReturns
cbrt(Arg₁).math::cbrt(1.2345) :> 1.07274631515821 math::cbrt(-1.2345) :> -1.07274631515821
meth math::ceil(Arg₁: real): realReturns
ceil(Arg₁).math::ceil(1.2345) :> 2 math::ceil(-1.2345) :> -1
meth math::ceil(Arg₁: real, Arg₂: real): realReturns
ceil(Arg₁ * Arg₂) / Arg₂.math::ceil(1.2345, 100) :> 1.24 math::ceil(-1.2345, 32) :> -1.21875
meth math::cos(Arg₁: real): realReturns
cos(Arg₁).math::cos(1.2345) :> 0.329993157678568 math::cos(-1.2345) :> 0.329993157678568
meth math::cosh(Arg₁: real): realReturns
cosh(Arg₁).math::cosh(1.2345) :> 1.86381998863995 math::cosh(-1.2345) :> 1.86381998863995
meth math::delta(Arg₁: real, Arg₂: real)TBD
meth math::erf(Arg₁: real): realReturns
erf(Arg₁).math::erf(1.2345) :> 0.919162396413566 math::erf(-1.2345) :> -0.919162396413566
meth math::erfc(Arg₁: real): realReturns
erfc(Arg₁).math::erfc(1.2345) :> 0.0808376035864342 math::erfc(-1.2345) :> 1.91916239641357
meth math::exp(Arg₁: real): realReturns
exp(Arg₁).math::exp(1.2345) :> 3.43665976117046 math::exp(-1.2345) :> 0.290980216109441
meth math::expm1(Arg₁: real): realReturns
expm1(Arg₁).math::expm1(1.2345) :> 2.43665976117046 math::expm1(-1.2345) :> -0.709019783890559
meth math::floor(Arg₁: real): realReturns
floor(Arg₁).math::floor(1.2345) :> 1 math::floor(-1.2345) :> -2
meth math::floor(Arg₁: real, Arg₂: real): realReturns
floor(Arg₁ * Arg₂) / Arg₂.math::floor(1.2345, 100) :> 1.23 math::floor(-1.2345, 32) :> -1.25
meth math::gamma(Arg₁: real): realReturns
gamma(Arg₁).math::gamma(1.2345) :> -0.0946016466793967 math::gamma(-1.2345) :> 1.42638586810001
meth math::hypot(Arg₁: real, Arg₂: real): realReturns
hypot(Arg₁, Arg₂).meth math::log(Arg₁: real): realReturns
log(Arg₁).math::log(1.2345) :> 0.210666029803097 math::log(-1.2345) :> 0.210666029803097 + 3.14159265358979i
meth math::log10(Arg₁: real): realReturns
log10(Arg₁).math::log10(1.2345) :> 0.091491094267951 math::log10(-1.2345) :> 0.091491094267951 + 1.36437635384184i
meth math::log1p(Arg₁: real): realReturns
log1p(Arg₁).math::log1p(1.2345) :> 0.804017489391369 math::log1p(-1.2345) :> -nan
meth math::logit(Arg₁: real): realReturns
logit(Arg₁).math::logit(1.2345) :> -nan math::logit(-1.2345) :> -nan
meth math::rem(Arg₁: real, Arg₂: real): realReturns
rem(Arg₁, Arg₂).meth math::round(Arg₁: real): realReturns
round(Arg₁).math::round(1.2345) :> 1 math::round(-1.2345) :> -1
meth math::round(Arg₁: real, Arg₂: real): realReturns
round(Arg₁ * Arg₂) / Arg₂.math::round(1.2345, 100) :> 1.23 math::round(-1.2345, 32) :> -1.25
meth math::sin(Arg₁: real): realReturns
sin(Arg₁).math::sin(1.2345) :> 0.943983323944511 math::sin(-1.2345) :> -0.943983323944511
meth math::sinh(Arg₁: real): realReturns
sinh(Arg₁).math::sinh(1.2345) :> 1.57283977253051 math::sinh(-1.2345) :> -1.57283977253051
meth math::sqrt(Arg₁: real): realReturns
sqrt(Arg₁).math::sqrt(1.2345) :> 1.11108055513541 math::sqrt(-1.2345) :> 1.11108055513541i
meth math::square(R: real): realReturns
R * Rmath::square(1.234) :> 1.522756
meth math::tan(Arg₁: real): realReturns
tan(Arg₁).math::tan(1.2345) :> 2.86061483997194 math::tan(-1.2345) :> -2.86061483997194
meth math::tanh(Arg₁: real): realReturns
tanh(Arg₁).math::tanh(1.2345) :> 0.843879656896602 math::tanh(-1.2345) :> -0.843879656896602