숫자
Integers Ratios 분수 Floating-Point Numbers Complex Numbers
integer fixnum bignum ratio ratio, rational, real, number, t
float #C(a b) #\char
most-positive- most-negative- fixnum / short-float / single-float / long-float
| 진법 | ||
|---|---|---|
| 2진법 | #b | binary |
| 8진법 | #o | octal |
| 16진법 | #x | hexadecimal |
| N진법 | #Nr | 여기서 N은 임의의 수 |
| 부동 소수점 | |
|---|---|
| s | short-float |
| f | single-float |
| d | double-float |
| l | long-float |
복소수
a + bi == (complex a b) == #C(a b)
(type-of #C(1 2))
;;=> (COMPLEX (INTEGER 1 2))
(typep #C(1 2) 'complex)
;;=> T
(complex 1 2)
;;=> #C(1 2)
(* #C(1 2) #C(1 2))
;;=> #C(-3 4)
(complexp #C(1 2))
;;=> T
1+ 1- incf decf min max minusp / zerop / plusp evenp / oddp
LOG EXP EXPT SIN/COS/TAN ASIN/ACOS/ATAN 쌍곡선 함수: SINH, COSH, 및 TANH ASINH, ACOSH, 및 ATANH.
FLOOR CEILING TRUNCATE ROUND MOD REM
isqrt, which returns the greatest integer less than or equal to the exact positive square root of natural.
gcd Greatest Common Denominator
lcm Least Common Multiple.