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 {1 \over u} = \int_0^\infty dk \, \sin ku = \int_0^\infty dk \, \operatorname{Im} e^{iku} }

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

Semantic latex: {1 \over u} = \int_0^\infty \diff{k} \sin ku = \int_0^\infty \diff{k} \imagpart \expe^{\iunit ku}

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

Complete translation information:

{
  "id" : "FORMULA_396acd854d0096b974f65374f6aa0054",
  "formula" : "{1 \\over u} = \\int_0^\\infty dk  \\sin ku = \\int_0^\\infty dk  \\operatorname{Im} e^{iku}",
  "semanticFormula" : "{1 \\over u} = \\int_0^\\infty \\diff{k} \\sin ku = \\int_0^\\infty \\diff{k} \\imagpart \\expe^{\\iunit ku}",
  "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" : [ ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ ]
}

Specify your own input