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 \operatorname{Cin}(x) = \int_0^x \frac{1 - \cos t}{t}\operatorname{d}t~,}

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

Semantic latex: \operatorname{Cin}(x) = \int_0^x \frac{1 - \cos t}{t} \operatorname \diff{t}

Confidence: 0

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) The input LaTeX is invalid: \operatorname has no argument

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) The input LaTeX is invalid: \operatorname has no argument

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) The input LaTeX is invalid: \operatorname has no argument

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_5830508857ba3ddf297e51aad09972f5",
  "formula" : "\\operatorname{Cin}(x) = \\int_0^x \\frac{1 - \\cos t}{t}\\operatorname{d}t~",
  "semanticFormula" : "\\operatorname{Cin}(x) = \\int_0^x \\frac{1 - \\cos t}{t} \\operatorname \\diff{t}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) The input LaTeX is invalid: \\operatorname has no argument"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) The input LaTeX is invalid: \\operatorname has no argument"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) The input LaTeX is invalid: \\operatorname has no argument"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "\\operatorname{Cin}(x) = \\int_0^x \\frac{1 - \\cos t}{t}\\operatorname{d}t", "Cin", "x" ],
  "isPartOf" : [ "\\operatorname{Cin}(x) = \\int_0^x \\frac{1 - \\cos t}{t}\\operatorname{d}t" ],
  "definiens" : [ ]
}

Specify your own input