Files
marqdo/lib/数学.mq.md
T
cflmyandCursor 1f23e2ed93 Add module namespaces and harden L1/agent after the import redesign.
Bind imports to library names with bare path calls (and use), forward optional host args through mq wrappers, stabilize writeback replacement newlines, and document the M1/M2 decisions.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 13:28:32 +08:00

214 lines
2.8 KiB
Markdown

---
title: lib/数学
description: 高中数学 — 数值、随机、公式、作图
---
## 圆周率
**> host_pi**
## 自然底数
**> host_e**
## 数
+ `value`
**> host_num value=`value`**
## 加
+ `a`
+ `b`
**> host_math_add a=`a` b=`b`**
## 减
+ `a`
+ `b`
**> host_math_sub a=`a` b=`b`**
## 乘
+ `a`
+ `b`
**> host_math_mul a=`a` b=`b`**
## 除
+ `a`
+ `b`
**> host_math_div a=`a` b=`b`**
## 幂
+ `a`
+ `b`
**> host_math_pow a=`a` b=`b`**
## 负
+ `value`
**> host_math_neg value=`value`**
## 正弦
+ `value`
**> host_math_sin value=`value`**
## 余弦
+ `value`
**> host_math_cos value=`value`**
## 正切
+ `value`
**> host_math_tan value=`value`**
## 反正弦
+ `value`
**> host_math_asin value=`value`**
## 反余弦
+ `value`
**> host_math_acos value=`value`**
## 反正切
+ `value`
**> host_math_atan value=`value`**
## 平方根
+ `value`
**> host_math_sqrt value=`value`**
## 绝对值
+ `value`
**> host_math_abs value=`value`**
## 对数
+ `value`
**> host_math_ln value=`value`**
## 指数
+ `value`
**> host_math_exp value=`value`**
## 向下取整
+ `value`
**> host_math_floor value=`value`**
## 向上取整
+ `value`
**> host_math_ceil value=`value`**
## 最小
+ `a`
+ `b`
**> host_math_min a=`a` b=`b`**
## 最大
+ `a`
+ `b`
**> host_math_max a=`a` b=`b`**
## 随机
**> host_random**
## 随机整数
+ `min`
+ `max`
**> host_random_int min=`min` max=`max`**
## 设种子
+ `value`
**> host_seed value=`value`**
## 公式
+ `text`
**> host_formula value=`text`**
## 化简
+ `formula`
**> host_simplify value=`formula`**
## 展开
+ `formula`
**> host_expand value=`formula`**
## 求导
+ `formula`
+ `var`
**> host_diff formula=`formula` var=`var`**
## 代入
+ `formula`
+ `var`
+ `value`
**> host_subs formula=`formula` var=`var` value=`value`**
## 求值
+ `formula`
+ `var`
+ `value`
**> host_eval formula=`formula` var=`var` value=`value`**
## 求解
+ `formula`
+ `var`
+ `min`=None
+ `max`=None
**> host_solve formula=`formula` var=`var` min=`min` max=`max`**
## 绘图
+ `formula`
+ `var`
+ `min`
+ `max`
+ `steps`=None
+ `path`=None
+ `derivative`=None
+ `grid`=None
**> host_plot formula=`formula` var=`var` min=`min` max=`max` steps=`steps` path=`path` derivative=`derivative` grid=`grid`**
## 绘点列
+ `xs`
+ `ys`
+ `path`=None
+ `grid`=None
**> host_plot_points xs=`xs` ys=`ys` path=`path` grid=`grid`**
## 绘圆锥
+ `kind`
+ `a`
+ `b`=None
+ `h`=None
+ `k`=None
+ `path`=None
+ `grid`=None
**> host_plot_conic kind=`kind` a=`a` b=`b` h=`h` k=`k` path=`path` grid=`grid`**