# 初等函数

幂、根、指数与对数，绝对值、取整、阶乘与二项式系数，最大公约数，以及几个数中的最大值与最小值。

34 个函数

## 有说明的函数

- [gcd](https://zh.hilberon.com/library/gcd)

  整数的最大公约数。
- [sqrt](https://zh.hilberon.com/library/sqrt)

  平方根；sqrt(x) 即幂 x^(1/2)。
- [exp](https://zh.hilberon.com/library/exp)

  指数函数；exp(x) 就是 e^x 这个幂。
- [log](https://zh.hilberon.com/library/log)

  对数：ln 为自然对数，log 可指定任意底数。
- [abs](https://zh.hilberon.com/library/abs)

  数的绝对值，或复数的模。
- [binomial](https://zh.hilberon.com/library/binomial)

  二项式系数：从 n 个物品中选出 k 个的方法数。
- [ceil](https://zh.hilberon.com/library/ceil)

  不小于某个数的最小整数。
- [factorial](https://zh.hilberon.com/library/factorial)

  阶乘：n! 是从 1 到 n 的所有整数的乘积。
- [floor](https://zh.hilberon.com/library/floor)

  不超过某数的最大整数。
- [lcm](https://zh.hilberon.com/library/lcm)

  若干整数的最小公倍数。
- [max](https://zh.hilberon.com/library/max)

  若干个数中的最大值。
- [min](https://zh.hilberon.com/library/min)

  若干个数中的最小值。
- [mod](https://zh.hilberon.com/library/mod)

  整数除法的余数。
- [round](https://zh.hilberon.com/library/round)

  最接近的整数，恰为半时向远离零的方向舍入。
- [sign](https://zh.hilberon.com/library/sign)

  数的符号：-1、0 或 1。
- [arg](https://zh.hilberon.com/library/arg)

  复数的辐角：它的角度，以弧度表示。
- [conj](https://zh.hilberon.com/library/conj)

  复共轭。
- [divide](https://zh.hilberon.com/library/divide)

  商：/ 的函数形式。
- [double_factorial](https://zh.hilberon.com/library/double_factorial)

  双阶乘：n!! 从 n 开始每隔一个数相乘。
- [frac](https://zh.hilberon.com/library/frac)

  一个数的小数部分。
- [im](https://zh.hilberon.com/library/im)

  复数的虚部。
- [log10](https://zh.hilberon.com/library/log10)

  以 10 为底的对数。
- [log2](https://zh.hilberon.com/library/log2)

  以 2 为底的对数。
- [negate](https://zh.hilberon.com/library/negate)

  一个数的相反数：负号的函数形式。
- [plus](https://zh.hilberon.com/library/plus)

  数值之和：+ 的函数形式。
- [power](https://zh.hilberon.com/library/power)

  幂：^ 的函数形式。
- [quotient](https://zh.hilberon.com/library/quotient)

  除法的整数商，不含余数。
- [re](https://zh.hilberon.com/library/re)

  复数的实部。
- [subtract](https://zh.hilberon.com/library/subtract)

  差：- 的函数形式。
- [times](https://zh.hilberon.com/library/times)

  数字的乘积：\* 的函数形式。
- [trunc](https://zh.hilberon.com/library/trunc)

  截去小数部分后的数。

## 此类别中的其他函数

这些函数还没有说明，每个只列出它的第一种写法。

- [cbrt](https://zh.hilberon.com/library/cbrt)
- [clip](https://zh.hilberon.com/library/clip)
- [directed_infinity](https://zh.hilberon.com/library/directed_infinity)

## 其他类别

- [抽象代数](https://zh.hilberon.com/library/category/abstract-algebra) 55
- [代数](https://zh.hilberon.com/library/category/algebra) 52
- [假设](https://zh.hilberon.com/library/category/assumptions) 10
- [微积分](https://zh.hilberon.com/library/category/calculus) 21
- [微分方程与差分方程](https://zh.hilberon.com/library/category/differential-and-difference-equations) 187
- [方程求解](https://zh.hilberon.com/library/category/equation-solving) 15
- [线性代数](https://zh.hilberon.com/library/category/linear-algebra) 44
- [列表](https://zh.hilberon.com/library/category/lists) 52
- [逻辑与比较](https://zh.hilberon.com/library/category/logic-and-comparison) 45
- [数论](https://zh.hilberon.com/library/category/number-theory) 53
- [数值计算](https://zh.hilberon.com/library/category/numerical-computation) 5
- [优化](https://zh.hilberon.com/library/category/optimization) 6
- [展示](https://zh.hilberon.com/library/category/presentation) 7
- [概率与随机过程](https://zh.hilberon.com/library/category/probability-and-stochastic-processes) 73
- [编程](https://zh.hilberon.com/library/category/programming) 43
- [级数与求和](https://zh.hilberon.com/library/category/series-and-sums) 17
- [特殊函数](https://zh.hilberon.com/library/category/special-functions) 95
- [字符串](https://zh.hilberon.com/library/category/strings) 4
- [变换](https://zh.hilberon.com/library/category/transforms) 15
- [三角学](https://zh.hilberon.com/library/category/trigonometry) 28

---
Source: https://zh.hilberon.com/library/category/elementary-functions
