Skip to content

v0.1.0

Choose a tag to compare

@TYEclipse TYEclipse released this 08 Sep 22:02
· 4 commits to main since this release

v0.1.0 — initial release

Five pure-math tools for complex arithmetic on the principal branch, zero runtime dependencies:

  • complex_parse — parse "3+4i" / "-2i" / "5∠53.13°" (i or j, implicit coefficient 1, scientific notation) into the full identity: rectangular/polar/exponential forms, modulus, argument (rad + deg), conjugate
  • complex_calc — add / subtract / multiply / divide / conjugate / reciprocal / integer power (De Moivre, exponent −1000..1000)
  • complex_convert — polar ↔ rectangular conversion
  • complex_functions — principal values of exp / log / sin / cos / tan / sinh / cosh / sqrt, with branch conventions reported in the result note
  • complex_roots — all n n-th roots (n = 1..64), listed from the principal root

Deterministic closed-form arithmetic: raw IEEE doubles during computation, rounding + dust-snapping only at the output boundary (10 decimals by default, configurable). 123 tests, all anchored by an independent Python cmath oracle.


v0.1.0 —— 首发版本

主值分支上的复数运算,5 个纯数学工具,零运行时依赖:

  • complex_parse — 解析 "3+4i" / "-2i" / "5∠53.13°"(i/j 均可、系数 1 可省略、科学计数法)→ 完整身份:直角/极坐标/指数形式、模、辐角(弧度与角度)、共轭
  • complex_calc — 加 / 减 / 乘 / 除 / 共轭 / 倒数 / 整数幂(De Moivre,指数 −1000..1000)
  • complex_convert — 极坐标 ↔ 直角坐标互转
  • complex_functions — exp / log / sin / cos / tan / sinh / cosh / sqrt 的主值,分支约定写入结果 note
  • complex_roots — 全部 n 个 n 次方根(n = 1..64),从主根起排列

确定性闭式计算:计算过程保留原始 IEEE double,仅在输出边界做舍入与尘埃归零(默认 10 位小数,可配)。123 个测试全绿,全部锚点由独立 Python cmath oracle 生成。