6

wolfram alpha 接受乳胶,但不导出到乳胶,

它导出纯文本、渲染图像和数学语法。

是否有任何将输出转换为乳胶的 javascript 库?

数学语法:

Cell[BoxData[FormBox[TagBox[RowBox[List[FractionBox["1", "2"], " ", RowBox[List["(", RowBox[List[RowBox[List["4", " ", SuperscriptBox["x", "2"]]], "+", "x", "+", "2"]], ")"]]]], Identity, Rule[TagBoxNote, List[Rule["Hyperlink", "1/2 (2+x+4 x^2)"]]]], TraditionalForm]], "Output", Rule[PageWidth, 500], Rule[Magnification, 1], Rule[CellMargins, List[List[0, 0], List[0, 0]]], Rule[ShowCellBracket, False], Rule[FontFamily, "Bitstream Charter"], Rule[FontSize, 14], Rule[NumberSeparator, "\[ThinSpace]"]]

乳胶语法

2x^2+\frac{x}{2} +1
4

1 回答 1

1

I know that you can do it within Mathematica itself using TeXForm

So you would do something like ToExpression["\\frac{a}{b}", TeXForm]

于 2013-02-11T14:42:20.077 回答