【文件属性】:
文件名称:数学:混沌语言数学库
文件大小:15KB
文件格式:ZIP
更新时间:2021-02-11 17:20:03
C
混沌语言数学库。 您可以使用以下命令安装此拼写:
occultist install math
并导入:
import math
数学常数
num math.pi()
返回数学常数$ \ pi = 3.14159 ... $
kaos> math.pi()
3.14159
num math.e()
返回数学常数$ e = 2.71828 ... $
kaos> math.e()
2.71828
num math.golden_ratio()
返回数学常数$ \ phi = 1.61803 ... $
kaos> math.golden_ratio()
1.61803
num math.inf()
返回正无穷大inf常数。
kaos> math.inf()
inf
num math.nan()
返回非数字nan常数。
kaos> math.nan()
nan
三角函
【文件预览】:
math-master
----.github()
--------workflows()
----occultist.json(348B)
----make.bat(1KB)
----test.sh(264B)
----LICENSE(7KB)
----test.kaos(4KB)
----math.c(33KB)
----test.bat(290B)
----.gitignore(230B)
----Makefile(1KB)
----README.md(9KB)
----test.out(1KB)