https://github.com/d5884/yabin.git
git clone 'git://github.com/d5884/yabin.git'
yabin.el
is Yet another bignum package for Emacs.
In fact, this is only a wrapper of calc
, but it's a little bit
useful than using directly.
Difference of math-*/calcFunc-* functions
calc
package's internal form can be used directly.yabin-div
and yabin-reminder
.Put elisp file in your load-path, and require.
All function have alias name like !FUNC ⇒ yabin-FUNC
Basic arithmetic
!add
(!+
)
!add1
(!1+
)
!sub
(!minus
, !-
)
!sub1
(!1-
)
!multi
(!*
)
!div
(!/
)
!reminder
(!%
)
!mod
!expt
(!power
, !^
)
!abs
!max
!min
Application function
!sin
!cos
!tan
!asin
!acos
!atan
!log
!log10
!exp
!sqrt
!nth-root
!fact
!gcd
!lcm
Random
!random
!shuffle
Conversion
!ceiling
!floor
!round
!truncate
!float
!ffloor
!fceiling
!fround
!radix
Bitwise operation
!ash
!rash
!lsh
!rsh
!rot
!logand
!logior
!logxor
!logdiff
!lognot
Binary integer conversion
!limit-nbit
!limit-nbyte
!overflowp
!clip
!unsigned
!signed
!pack
!number-to-unibyte-string
!unpack
(!unibyte-string-to-number
)
Predicate
!numberp
!natnump
!integerp
!oddp
!evenp
!posp
!negp
!zerop
!floatp
!isnan
!isinf
Comparator
!equal
(!=
)
!not-equal
(!/=
)
!less-than
(!<
)
!less-than-equal
(!<=
)
!greater-than
(!>
)
!greater-than-equal
(!>=
)
Formatting
!format
!format-spec