JPhrases/TransFunctions

From J Wiki
Jump to navigation Jump to search

9D. Transcendental Functions

m0 =: (^1)&^ Exponential ^
m1 =: (^1)&^. Natural log ^.
m2 =: antilog=: 10&^ Ten-to-the-power (Base-10 Antilog)
m3 =: log=:10&^. Base-10 log
m4 =: sin=: 1&o. Sin
m5 =: cos=: 2&o. Cos
m6 =: tan=: 3&o. Tan
m7 =: sinh=: 5&o. Sinh
m8 =: cosh=: 6&o. Cosh
m9 =: tanh=: 7&o. Tanh
m10=: ^ .:-&.j. Sin as odd part of exponential
m11=: ^@j. ..- Cos as even part
m12=: ^ .:- Sinh as odd part
m13=: ^ ..- Cosh as even part
m14=: sin -: sinh&.j. Tautology
m15=: cos -: cosh& j. "
m16=: tan -: tanh&.j. "
m17=: sinh -: sin&.j. "
m18=: tan -: tanh&.j. "
m19=: tanh -: tan&.j. "
d20=: * -: +&.^. "
d21=: * -: +&.(10&^.) "
v22=: % -: -&.^. "
d23=: + -: *&.^ "
d24=: + -: *&.(10&^) "
v25=: - -: %&.^ "
m26=: gamma=: !@<: Gamma function of y
d27=: beta=: *&m26 % m26@+ Beta function of x and y