mirror of
https://github.com/louisrubet/rpn
synced 2024-12-29 10:23:59 +01:00
499 lines
5 KiB
Markdown
499 lines
5 KiB
Markdown
|
# LOGARITHMS
|
||
|
|
||
|
## complex ln (1)
|
||
|
|
||
|
`(1,2) ln`
|
||
|
|
||
|
-> stack should be (0.804719,1.107149)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex ln (2)
|
||
|
|
||
|
`(1,-2) ln`
|
||
|
|
||
|
-> stack should be (0.804719,-1.107149)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
|
||
|
## complex ln (3)
|
||
|
|
||
|
`(-1,-2) ln`
|
||
|
|
||
|
-> stack should be (0.804719,-2.034444)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex ln (4)
|
||
|
|
||
|
`(-1,2) ln`
|
||
|
|
||
|
-> stack should be (0.804719,2.034444)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex lnp1 (1)
|
||
|
|
||
|
`(1,2) lnp1`
|
||
|
|
||
|
`(1,2) 1 + ln ==`
|
||
|
|
||
|
-> stack should be 1.000000
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex lnp1 (2)
|
||
|
|
||
|
`(1,-2) lnp1`
|
||
|
|
||
|
`(1,-2) 1 + ln ==`
|
||
|
|
||
|
-> stack should be 1.000000
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex lnp1 (3)
|
||
|
|
||
|
`(-1,-2) lnp1`
|
||
|
|
||
|
`(-1,-2) 1 + ln ==`
|
||
|
|
||
|
-> stack should be 1.000000
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex lnp1 (4)
|
||
|
|
||
|
`(-1,2) lnp1`
|
||
|
|
||
|
`(-1,2) 1 + ln ==`
|
||
|
|
||
|
-> stack should be 1.000000
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex log (1)
|
||
|
|
||
|
`(1,2) log`
|
||
|
|
||
|
-> stack should be (0.804719,1.107149)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex log (2)
|
||
|
|
||
|
`(1,-2) log`
|
||
|
|
||
|
-> stack should be (0.804719,-1.107149)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex log (3)
|
||
|
|
||
|
`(-1,-2) log`
|
||
|
|
||
|
-> stack should be (0.804719,-2.034444)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex log (4)
|
||
|
|
||
|
`(-1,2) log`
|
||
|
|
||
|
-> stack should be (0.804719,2.034444)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex log10 (1)
|
||
|
|
||
|
`(1,2) log10`
|
||
|
|
||
|
-> stack should be (0.349485,0.480829)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex log10 (2)
|
||
|
|
||
|
`(1,-2) log10`
|
||
|
|
||
|
-> stack should be (0.349485,-0.480829)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex log10 (3)
|
||
|
|
||
|
`(-1,-2) log10`
|
||
|
|
||
|
-> stack should be (0.349485,-0.883548)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex log10 (4)
|
||
|
|
||
|
`(-1,2) log10`
|
||
|
|
||
|
-> stack should be (0.349485,0.883548)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex log2 (1)
|
||
|
|
||
|
`(1,2) log2`
|
||
|
|
||
|
-> stack should be (1.160964,1.597278)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex log2 (2)
|
||
|
|
||
|
`(1,-2) log2`
|
||
|
|
||
|
-> stack should be (1.160964,-1.597278)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex log2 (3)
|
||
|
|
||
|
`(-1,-2) log2`
|
||
|
|
||
|
-> stack should be (1.160964,-2.935082)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex log2 (4)
|
||
|
|
||
|
`(-1,2) log2`
|
||
|
|
||
|
-> stack should be (1.160964,2.935082)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex exp (1)
|
||
|
|
||
|
`(1,2) exp`
|
||
|
|
||
|
-> stack should be (-1.131204,2.471727)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex exp (2)
|
||
|
|
||
|
`(1,-2) exp`
|
||
|
|
||
|
-> stack should be (-1.131204,-2.471727)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex exp (3)
|
||
|
|
||
|
`(-1,-2) exp`
|
||
|
|
||
|
-> stack should be (-0.153092,-0.334512)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex exp (4)
|
||
|
|
||
|
`(-1,2) exp`
|
||
|
|
||
|
-> stack should be (-0.153092,0.334512)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex expm (1)
|
||
|
|
||
|
`(1,2) expm`
|
||
|
|
||
|
`(1,2) exp 1 - ==`
|
||
|
|
||
|
-> stack should be 1.000000
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex expm (2)
|
||
|
|
||
|
`(1,-2) expm`
|
||
|
|
||
|
`(1,-2) exp 1 - ==`
|
||
|
|
||
|
-> stack should be 1.000000
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex expm (3)
|
||
|
|
||
|
`(-1,-2) expm`
|
||
|
|
||
|
`(-1,-2) exp 1 - ==`
|
||
|
|
||
|
-> stack should be 1.000000
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex expm (4)
|
||
|
|
||
|
`(-1,2) expm`
|
||
|
|
||
|
`(-1,2) exp 1 - ==`
|
||
|
|
||
|
-> stack should be 1.000000
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex alog2 (1)
|
||
|
|
||
|
`(1,2) alog2`
|
||
|
|
||
|
-> stack should be (0.366914,1.966055)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex alog2 (2)
|
||
|
|
||
|
`(1,-2) alog2`
|
||
|
|
||
|
-> stack should be (0.366914,-1.966055)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex alog2 (3)
|
||
|
|
||
|
`(-1,-2) alog2`
|
||
|
|
||
|
-> stack should be (0.091728,-0.491514)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex alog2 (4)
|
||
|
|
||
|
`(-1,2) alog2`
|
||
|
|
||
|
-> stack should be (0.091728,0.491514)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex alog10 (1)
|
||
|
|
||
|
`(1,2) alog10`
|
||
|
|
||
|
-> stack should be (-1.070135,-9.942576)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex alog10 (2)
|
||
|
|
||
|
`(1,-2) alog10`
|
||
|
|
||
|
-> stack should be (-1.070135,9.942576)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex alog10 (3)
|
||
|
|
||
|
`(-1,-2) alog10`
|
||
|
|
||
|
-> stack should be (-0.010701,0.099426)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex alog10 (4)
|
||
|
|
||
|
`(-1,2) alog10`
|
||
|
|
||
|
-> stack should be (-0.010701,-0.099426)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex sinh (1)
|
||
|
|
||
|
`(1,2) sinh`
|
||
|
|
||
|
-> stack should be (-0.489056,1.403119)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex sinh (2)
|
||
|
|
||
|
`(1,-2) sinh`
|
||
|
|
||
|
-> stack should be (-0.489056,-1.403119)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex sinh (3)
|
||
|
|
||
|
`(-1,-2) sinh`
|
||
|
|
||
|
-> stack should be (0.489056,-1.403119)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex sinh (4)
|
||
|
|
||
|
`(-1,2) sinh`
|
||
|
|
||
|
-> stack should be (0.489056,1.403119)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex asinh (1)
|
||
|
|
||
|
`(1,2) asinh`
|
||
|
|
||
|
-> stack should be (1.469352,1.063440)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex asinh (2)
|
||
|
|
||
|
`(1,-2) asinh`
|
||
|
|
||
|
-> stack should be (1.469352,-1.063440)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex asinh (3)
|
||
|
|
||
|
`(-1,-2) asinh`
|
||
|
|
||
|
-> stack should be (-1.469352,-1.063440)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex asinh (4)
|
||
|
|
||
|
`(-1,2) asinh`
|
||
|
|
||
|
-> stack should be (-1.469352,1.063440)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex cosh (1)
|
||
|
|
||
|
`(1,2) cosh`
|
||
|
|
||
|
-> stack should be (-0.489056,1.403119)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex cosh (2)
|
||
|
|
||
|
`(1,-2) cosh`
|
||
|
|
||
|
-> stack should be (-0.489056,-1.403119)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex cosh (3)
|
||
|
|
||
|
`(-1,-2) cosh`
|
||
|
|
||
|
-> stack should be (0.489056,-1.403119)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex cosh (4)
|
||
|
|
||
|
`(-1,2) cosh`
|
||
|
|
||
|
-> stack should be (0.489056,1.403119)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex acosh (1)
|
||
|
|
||
|
`(1,2) acosh`
|
||
|
|
||
|
-> stack should be (1.528571,1.143718)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex acosh (2)
|
||
|
|
||
|
`(1,-2) acosh`
|
||
|
|
||
|
-> stack should be (1.528571,-1.143718)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex acosh (3)
|
||
|
|
||
|
`(-1,-2) acosh`
|
||
|
|
||
|
-> stack should be (-1.528571,1.997875)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex acosh (4)
|
||
|
|
||
|
`(-1,2) acosh`
|
||
|
|
||
|
-> stack should be (-1.528571,-1.997875)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex tanh (1)
|
||
|
|
||
|
`(1,2) tanh`
|
||
|
|
||
|
-> stack should be (0.564133,-0.217934)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex tanh (2)
|
||
|
|
||
|
`(1,-2) tanh`
|
||
|
|
||
|
-> stack should be (0.564133,0.217934)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex tanh (3)
|
||
|
|
||
|
`(-1,-2) tanh`
|
||
|
|
||
|
-> stack should be (-0.564133,0.217934)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex tanh (4)
|
||
|
|
||
|
`(-1,2) tanh`
|
||
|
|
||
|
-> stack should be (-0.564133,-0.217934)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex atanh (1)
|
||
|
|
||
|
`(1,2) atanh`
|
||
|
|
||
|
-> stack should be (0.173287,1.178097)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex atanh (2)
|
||
|
|
||
|
`(1,-2) atanh`
|
||
|
|
||
|
-> stack should be (0.173287,-1.178097)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex atanh (3)
|
||
|
|
||
|
`(-1,-2) atanh`
|
||
|
|
||
|
-> stack should be (-0.173287,-1.178097)
|
||
|
|
||
|
`del`
|
||
|
|
||
|
## complex atanh (4)
|
||
|
|
||
|
`(-1,2) atanh`
|
||
|
|
||
|
-> stack should be (-0.173287,1.178097)
|
||
|
|
||
|
`del`
|