# unit_step 函数

单位阶跃：小于零时为 0，从零起为 1。

## 怎么写

### unit_step(x)

**x**

自变量。接受一个表达式。

## 示例

- $\displaystyle \operatorname{unit\_step}(1) = 1$

  `unit_step(1)`

  在求解器中，`unit_step(1)` 的结果是 `1`。

  [在求解器中打开](https://zh.hilberon.com/?q=unit_step%281%29)

## 相关函数

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

  不变量为 g2 和 g3 的魏尔斯特拉斯椭圆函数。
- [stieltjes_gamma](https://zh.hilberon.com/library/stieltjes_gamma)

  Stieltjes 常数：第 n 个出现在 zeta 函数在 1 处的洛朗级数中。
- [whittaker_m](https://zh.hilberon.com/library/whittaker_m)

  惠特克函数 M。
- [spherical_bessel_y](https://zh.hilberon.com/library/spherical_bessel_y)

  第二类球贝塞尔函数。
- [zeta](https://zh.hilberon.com/library/zeta)

  黎曼 zeta 函数。
- [spherical_bessel_j](https://zh.hilberon.com/library/spherical_bessel_j)

  第一类球贝塞尔函数。

---
Source: https://zh.hilberon.com/library/unit_step
