gpt4 book ai didi

Javascript 将数学符号转换为 MathML 符号

转载 作者:行者123 更新时间:2023-11-30 10:43:21 24 4
gpt4 key购买 nike

我想像这样转换表达式:

“a*x^2+b*x^2+c+d”……

“对数((a*x)/sin(x))”...

“1/x”...

使用 JavaScript 进入 MathML。有什么建议么?我找到的最接近的是 ASCIIMathML (http://www1.chapman.edu/~jipsen/mathml/asciimath.html),但这并不是我要找的确切符号。

最佳答案

MathML 最现代的扩展 javascript 库是 mathjax http://www.mathjax.org/虽然它的输入语法比 asciimath 更像 TeX(最新版本的 mathjax 也可以解析 asciimath 输入)

关于Javascript 将数学符号转换为 MathML 符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9843867/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com