JLFloatSpecialFunctions

jfsf.spad line 1 [edit on github]

Special functions computed using JL's ecosystem.

acosd: JLFloat -> JLFloat

acosd(x) computes the inverse cosine of x, where output is in degrees.

acotd: JLFloat -> JLFloat

acotd(x) computes the inverse cotangent of x, where output is in degrees.

acscd: JLFloat -> JLFloat

acscd(x) computes the inverse cosecant of x, where output is in degrees.

asecd: JLFloat -> JLFloat

asecd(x) computes the inverse secant of x, where output is in degrees.

asind: JLFloat -> JLFloat

asind(x) computes the inverse sine of x, where output is in degrees.

atand: (JLFloat, JLFloat) -> JLFloat

atand(x, y) computes the inverse tangent of x/y, where output is in degrees.

atand: JLFloat -> JLFloat

atand(x) computes the inverse tangent of x, where output is in degrees.

cosc: JLFloat -> JLFloat

cosc(x) computes cos(pi*x)/x−sin(pi*x)/(pi*x^2) if x~=0, and 0 if x=0 i.e. the derivative of sinc(x).

cosd: JLFloat -> JLFloat

cosd(x) computes cosine of x, where x is in degrees.

cospi: JLFloat -> JLFloat

cospi(x) computes cos(pi*x) more accurately.

cotd: JLFloat -> JLFloat

cotd(x) computes cotangent of x, where x is in degrees.

cscd: JLFloat -> JLFloat

cscd(x) computes cosecant of x, where x is in degrees.

deg2Rad: JLFloat -> JLFloat

deg2rad(x) converts x to radian, where x is in degrees.

hypot: (JLFloat, JLFloat) -> JLFloat

hypot(x,y) computes the hypotenuse avoiding overflow and underflow.

ldexp: (JLFloat, Integer) -> JLFloat

ldexp(x,n) computes x*2^n

rad2Deg: JLFloat -> JLFloat

rad2deg(x) converts x to degrees, where x is in radians.

secd: JLFloat -> JLFloat

secd(x) computes secant of x, where x is in degrees.

sinc: JLFloat -> JLFloat

sinc(x) computes the normalized sinc, i.e. sin(pi*x)/(pi*x) if x~=0, and 1 if x=0.

sind: JLFloat -> JLFloat

sind(x) computes sine of x, where x is in degrees.

sinpi: JLFloat -> JLFloat

sinpi(x) computes sin(pi*x) more accurately.

tand: JLFloat -> JLFloat

tand(x) computes tangent of x, where x is in degrees.

tanpi: JLFloat -> JLFloat

tanpi(x) computes tan(pi*x) more accurately.