nimTitle math math.html module std/math 0 nim binom math.html#binom,int,int proc binom(n, k: int): int 81 nim fac math.html#fac,int proc fac(n: int): int 99 nim PI math.html#PI const PI 127 nim TAU math.html#TAU const TAU 128 nim E math.html#E const E 129 nim MaxFloat64Precision math.html#MaxFloat64Precision const MaxFloat64Precision 131 nim MaxFloat32Precision math.html#MaxFloat32Precision const MaxFloat32Precision 134 nim MaxFloatPrecision math.html#MaxFloatPrecision const MaxFloatPrecision 137 nim MinFloatNormal math.html#MinFloatNormal const MinFloatNormal 141 nim fcNormal math.html#fcNormal FloatClass.fcNormal 146 nim fcSubnormal math.html#fcSubnormal FloatClass.fcSubnormal 146 nim fcZero math.html#fcZero FloatClass.fcZero 146 nim fcNegZero math.html#fcNegZero FloatClass.fcNegZero 146 nim fcNan math.html#fcNan FloatClass.fcNan 146 nim fcInf math.html#fcInf FloatClass.fcInf 146 nim fcNegInf math.html#fcNegInf FloatClass.fcNegInf 146 nim FloatClass math.html#FloatClass enum FloatClass 146 nim isNaN math.html#isNaN,SomeFloat proc isNaN(x: SomeFloat): bool 157 nim signbit math.html#signbit,SomeFloat proc signbit(x: SomeFloat): bool 195 nim copySign math.html#copySign,T,T proc copySign[T: SomeFloat](x, y: T): T 209 nim classify math.html#classify,float proc classify(x: float): FloatClass 234 nim almostEqual math.html#almostEqual,T,T,Natural proc almostEqual[T: SomeFloat](x, y: T; unitsInLastPlace: Natural = 4): bool 260 nim isPowerOfTwo math.html#isPowerOfTwo,int proc isPowerOfTwo(x: int): bool 289 nim nextPowerOfTwo math.html#nextPowerOfTwo,int proc nextPowerOfTwo(x: int): int 304 nim sum math.html#sum,openArray[T] proc sum[T](x: openArray[T]): T 329 nim prod math.html#prod,openArray[T] proc prod[T](x: openArray[T]): T 344 nim cumsummed math.html#cumsummed,openArray[T] proc cumsummed[T](x: openArray[T]): seq[T] 359 nim cumsum math.html#cumsum,openArray[T] proc cumsum[T](x: var openArray[T]) 377 nim sqrt math.html#sqrt,float32 proc sqrt(x: float32): float32 393 nim sqrt math.html#sqrt,float64 proc sqrt(x: float64): float64 394 nim cbrt math.html#cbrt,float32 proc cbrt(x: float32): float32 402 nim cbrt math.html#cbrt,float64 proc cbrt(x: float64): float64 403 nim ln math.html#ln,float32 proc ln(x: float32): float32 412 nim ln math.html#ln,float64 proc ln(x: float64): float64 413 nim log math.html#log,T,T proc log[T: SomeFloat](x, base: T): T 437 nim log10 math.html#log10,float32 proc log10(x: float32): float32 453 nim log10 math.html#log10,float64 proc log10(x: float64): float64 454 nim exp math.html#exp,float32 proc exp(x: float32): float32 465 nim exp math.html#exp,float64 proc exp(x: float64): float64 466 nim sin math.html#sin,float32 proc sin(x: float32): float32 475 nim sin math.html#sin,float64 proc sin(x: float64): float64 476 nim cos math.html#cos,float32 proc cos(x: float32): float32 484 nim cos math.html#cos,float64 proc cos(x: float64): float64 485 nim tan math.html#tan,float32 proc tan(x: float32): float32 493 nim tan math.html#tan,float64 proc tan(x: float64): float64 494 nim sinh math.html#sinh,float32 proc sinh(x: float32): float32 502 nim sinh math.html#sinh,float64 proc sinh(x: float64): float64 503 nim cosh math.html#cosh,float32 proc cosh(x: float32): float32 511 nim cosh math.html#cosh,float64 proc cosh(x: float64): float64 512 nim tanh math.html#tanh,float32 proc tanh(x: float32): float32 520 nim tanh math.html#tanh,float64 proc tanh(x: float64): float64 521 nim arcsin math.html#arcsin,float32 proc arcsin(x: float32): float32 529 nim arcsin math.html#arcsin,float64 proc arcsin(x: float64): float64 530 nim arccos math.html#arccos,float32 proc arccos(x: float32): float32 538 nim arccos math.html#arccos,float64 proc arccos(x: float64): float64 539 nim arctan math.html#arctan,float32 proc arctan(x: float32): float32 547 nim arctan math.html#arctan,float64 proc arctan(x: float64): float64 548 nim arctan2 math.html#arctan2,float32,float32 proc arctan2(y, x: float32): float32 557 nim arctan2 math.html#arctan2,float64,float64 proc arctan2(y, x: float64): float64 558 nim arcsinh math.html#arcsinh,float32 proc arcsinh(x: float32): float32 569 nim arcsinh math.html#arcsinh,float64 proc arcsinh(x: float64): float64 570 nim arccosh math.html#arccosh,float32 proc arccosh(x: float32): float32 575 nim arccosh math.html#arccosh,float64 proc arccosh(x: float64): float64 576 nim arctanh math.html#arctanh,float32 proc arctanh(x: float32): float32 581 nim arctanh math.html#arctanh,float64 proc arctanh(x: float64): float64 582 nim cot math.html#cot,T proc cot[T: float32 | float64](x: T): T 615 nim sec math.html#sec,T proc sec[T: float32 | float64](x: T): T 617 nim csc math.html#csc,T proc csc[T: float32 | float64](x: T): T 619 nim coth math.html#coth,T proc coth[T: float32 | float64](x: T): T 622 nim sech math.html#sech,T proc sech[T: float32 | float64](x: T): T 624 nim csch math.html#csch,T proc csch[T: float32 | float64](x: T): T 626 nim arccot math.html#arccot,T proc arccot[T: float32 | float64](x: T): T 629 nim arcsec math.html#arcsec,T proc arcsec[T: float32 | float64](x: T): T 631 nim arccsc math.html#arccsc,T proc arccsc[T: float32 | float64](x: T): T 633 nim arccoth math.html#arccoth,T proc arccoth[T: float32 | float64](x: T): T 636 nim arcsech math.html#arcsech,T proc arcsech[T: float32 | float64](x: T): T 638 nim arccsch math.html#arccsch,T proc arccsch[T: float32 | float64](x: T): T 640 nim hypot math.html#hypot,float32,float32 proc hypot(x, y: float32): float32 646 nim hypot math.html#hypot,float64,float64 proc hypot(x, y: float64): float64 647 nim pow math.html#pow,float32,float32 proc pow(x, y: float32): float32 652 nim pow math.html#pow,float64,float64 proc pow(x, y: float64): float64 653 nim erf math.html#erf,float32 proc erf(x: float32): float32 669 nim erf math.html#erf,float64 proc erf(x: float64): float64 670 nim erfc math.html#erfc,float32 proc erfc(x: float32): float32 674 nim erfc math.html#erfc,float64 proc erfc(x: float64): float64 675 nim gamma math.html#gamma,float32 proc gamma(x: float32): float32 679 nim gamma math.html#gamma,float64 proc gamma(x: float64): float64 680 nim lgamma math.html#lgamma,float32 proc lgamma(x: float32): float32 691 nim lgamma math.html#lgamma,float64 proc lgamma(x: float64): float64 692 nim floor math.html#floor,float32 proc floor(x: float32): float32 700 nim floor math.html#floor,float64 proc floor(x: float64): float64 701 nim ceil math.html#ceil,float32 proc ceil(x: float32): float32 713 nim ceil math.html#ceil,float64 proc ceil(x: float64): float64 714 nim round math.html#round,float32 proc round(x: float32): float32 783 nim round math.html#round,float64 proc round(x: float64): float64 784 nim trunc math.html#trunc,float32 proc trunc(x: float32): float32 801 nim trunc math.html#trunc,float64 proc trunc(x: float64): float64 802 nim `mod` math.html#mod,float32,float32 proc `mod`(x, y: float32): float32 813 nim `mod` math.html#mod,float64,float64 proc `mod`(x, y: float64): float64 814 nim round math.html#round,T,int proc round[T: float32 | float64](x: T; places: int): T 857 nim floorDiv math.html#floorDiv,T,T proc floorDiv[T: SomeInteger](x, y: T): T 877 nim floorMod math.html#floorMod,T,T proc floorMod[T: SomeNumber](x, y: T): T 897 nim euclDiv math.html#euclDiv,T,T proc euclDiv[T: SomeInteger](x, y: T): T 914 nim euclMod math.html#euclMod,T,T proc euclMod[T: SomeNumber](x, y: T): T 929 nim ceilDiv math.html#ceilDiv,T,T proc ceilDiv[T: SomeInteger](x, y: T): T 942 nim frexp math.html#frexp,T proc frexp[T: float32 | float64](x: T): tuple[frac: T, exp: int] 994 nim frexp math.html#frexp,T,int proc frexp[T: float32 | float64](x: T; exponent: var int): T 1035 nim log2 math.html#log2,float32 proc log2(x: float32): float32 1063 nim log2 math.html#log2,float64 proc log2(x: float64): float64 1064 nim splitDecimal math.html#splitDecimal,T proc splitDecimal[T: float32 | float64](x: T): tuple[intpart: T, floatpart: T] 1077 nim degToRad math.html#degToRad,T proc degToRad[T: float32 | float64](d: T): T 1099 nim radToDeg math.html#radToDeg,T proc radToDeg[T: float32 | float64](d: T): T 1109 nim sgn math.html#sgn,T proc sgn[T: SomeNumber](x: T): int 1119 nim `^` math.html#^,T,Natural proc `^`[T: SomeNumber](x: T; y: Natural): T 1136 nim gcd math.html#gcd,T,T proc gcd[T](x, y: T): T 1168 nim gcd math.html#gcd,SomeInteger,SomeInteger proc gcd(x, y: SomeInteger): SomeInteger 1187 nim gcd math.html#gcd,openArray[T] proc gcd[T](x: openArray[T]): T 1221 nim lcm math.html#lcm,T,T proc lcm[T](x, y: T): T 1233 nim clamp math.html#clamp,T,Slice[T] proc clamp[T](val: T; bounds: Slice[T]): T 1244 nim lcm math.html#lcm,openArray[T] proc lcm[T](x: openArray[T]): T 1256 heading See also math.html#see-also See also 0 nimgrp arccosh math.html#arccosh-procs-all proc 575 nimgrp tanh math.html#tanh-procs-all proc 520 nimgrp arccos math.html#arccos-procs-all proc 538 nimgrp erf math.html#erf-procs-all proc 669 nimgrp sinh math.html#sinh-procs-all proc 502 nimgrp arctanh math.html#arctanh-procs-all proc 581 nimgrp log10 math.html#log10-procs-all proc 453 nimgrp lcm math.html#lcm-procs-all proc 1233 nimgrp round math.html#round-procs-all proc 783 nimgrp sqrt math.html#sqrt-procs-all proc 393 nimgrp cosh math.html#cosh-procs-all proc 511 nimgrp arctan math.html#arctan-procs-all proc 547 nimgrp cbrt math.html#cbrt-procs-all proc 402 nimgrp arcsinh math.html#arcsinh-procs-all proc 569 nimgrp ceil math.html#ceil-procs-all proc 713 nimgrp arcsin math.html#arcsin-procs-all proc 529 nimgrp cos math.html#cos-procs-all proc 484 nimgrp floor math.html#floor-procs-all proc 700 nimgrp mod math.html#mod-procs-all proc 813 nimgrp erfc math.html#erfc-procs-all proc 674 nimgrp tan math.html#tan-procs-all proc 493 nimgrp exp math.html#exp-procs-all proc 465 nimgrp sin math.html#sin-procs-all proc 475 nimgrp lgamma math.html#lgamma-procs-all proc 691 nimgrp trunc math.html#trunc-procs-all proc 801 nimgrp hypot math.html#hypot-procs-all proc 646 nimgrp gcd math.html#gcd-procs-all proc 1168 nimgrp log2 math.html#log2-procs-all proc 1063 nimgrp arctan2 math.html#arctan2-procs-all proc 557 nimgrp ln math.html#ln-procs-all proc 412 nimgrp pow math.html#pow-procs-all proc 652 nimgrp frexp math.html#frexp-procs-all proc 994 nimgrp gamma math.html#gamma-procs-all proc 679