2022-02-20 15:58:15 +01:00
|
|
|
# LOGARITHMS
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`del default 6 fix`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## euler constant
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`e`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be 0.577216
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## ln log exp
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`2 ln exp`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`2 log exp`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be 2.000000, 2.000000
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## lnp1 expm
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`4 lnp1 expm`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be 4.000000
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## log10 alog10 exp10
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`5 log10 alog10`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`5 log10 exp10`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be 5.000000, 5.000000
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## log2 alog2 exp2
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`6 log2 alog2`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`6 log2 exp2`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be 6.000000, 6.000000
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## sinh asinh
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`1 sinh asinh`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
-> stack should be 1.000000
|
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## cosh acosh
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`1.1 cosh acosh`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be 1.100000
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## tanh atanh
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`1.2 tanh atanh`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be 1.200000
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## complex ln exp
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`(-1,-2) ln exp`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be (-1.000000,-2.000000)
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## complex log exp
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`(1,2) log exp`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be (1.000000,2.000000)
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## complex lnp1 expm
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`(1,2) lnp1 expm`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be (1.000000,2.000000)
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## complex log10 alog10
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`(1,-2) log10 alog10`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be (1.000000,-2.000000)
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## complex log2 alog2
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`(-1,-2) log2 alog2`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be (-1.000000,-2.000000)
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## complex sinh asinh
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`(1,1.5) sinh asinh`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be (1.000000,1.500000)
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## complex cosh acosh
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`(1,2) cosh acosh`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be (1.000000,2.000000)
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## complex tanh atanh
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`(1,1.5) tanh atanh`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> stack should be (1.000000,1.500000)
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## ln log lnp1 exp expm error
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`'ok' ln`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`log`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`lnp1`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`exp`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`expm`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## log10 alog10 exp10 log2 alog2 exp2 error
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`'ok' log10`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`alog10`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`exp10`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`log2`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`alog2`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`exp2`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
## sinh asinh cosh acosh tanh atanh error
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`'ok' sinh`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`asinh`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`cosh`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`acosh`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`tanh`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
`atanh`
|
2022-02-20 15:58:15 +01:00
|
|
|
|
2022-02-20 18:53:00 +01:00
|
|
|
-> error should be 3
|
2022-02-20 15:58:15 +01:00
|
|
|
|
|
|
|
`del`
|