LaTeX to CAS translator

Jump to navigation Jump to search

This mockup demonstrates the concept of TeX to Computer Algebra System (CAS) conversion.

The demo-application converts LaTeX functions which directly translate to CAS counterparts.

Functions without explicit CAS support are available for translation via a DRMF package (under development).

The following LaTeX input ...

{\displaystyle F(z) = {\sqrt{\pi} \over 2} e^{-z^2} \operatorname{erfi} (z) = \frac{i\sqrt{\pi}}{2} \left[ e^{-z^2} - w(z) \right],}

... is translated to the CAS output ...

Semantic latex: F(z) ={\sqrt{\cpi} \over 2} \expe^{-z^2} \operatorname{erfi}(z) = \frac{\iunit \sqrt{\cpi}}{2} [\expe^{-z^2} - w(z)]

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \over [\over]

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \over [\over]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \over [\over]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • entire complex plane
  • Dawson function
  • term
  • erfi
  • Faddeeva function

Complete translation information:

{
  "id" : "FORMULA_9d7f761ac935ab3eaeb80d8bd1bd2c04",
  "formula" : "F(z) = {\\sqrt{\\pi} \\over 2} e^{-z^2} \\operatorname{erfi} (z) = \\frac{i\\sqrt{\\pi}}{2} \\left[ e^{-z^2} - w(z) \\right]",
  "semanticFormula" : "F(z) ={\\sqrt{\\cpi} \\over 2} \\expe^{-z^2} \\operatorname{erfi}(z) = \\frac{\\iunit \\sqrt{\\cpi}}{2} [\\expe^{-z^2} - w(z)]",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \\over [\\over]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \\over [\\over]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \\over [\\over]"
        }
      }
    }
  },
  "positions" : [ {
    "section" : 1,
    "sentence" : 4,
    "word" : 23
  } ],
  "includes" : [ "w(z)", "F(x)", "F(y)" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "entire complex plane",
    "score" : 0.7125985104912714
  }, {
    "definition" : "Dawson function",
    "score" : 0.6460746792928004
  }, {
    "definition" : "term",
    "score" : 0.6460746792928004
  }, {
    "definition" : "erfi",
    "score" : 0.5988174995334326
  }, {
    "definition" : "Faddeeva function",
    "score" : 0.5500952380952381
  } ]
}

Specify your own input