call with True to turn on the entire Scheme numeric tower, including infinite-precision integers, exact rationals, and complex numbers; call with False to restore native JavaScript arithmetic.pt:altera utilização de aritmética do Scheme para _
The factorial function, to make very large numbers, to demo bignums.The identity function: reports its input.
It's useful to get things like 3/4 or 5-2i into
numeric input slots.Provides Scheme arithmetic functions not in JavaScriptpt:_ de _
number?
complex?
real?
rational?
integer?
exact?
inexact?
exact
inexact
finite?
infinite?
nan?
numerator
denominator
real-part
imag-part
magnitude
angle