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 \sin\,x = x - \frac{x^3}{3!}+\frac{x^5}{5!}- \frac{x^7}{7!}+\frac{x^9}{9!}-\frac{x^{11}}{11!}+\,... }

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

Semantic latex: \sinx = x - \frac{x^3}{3!}+\frac{x^5}{5!}- \frac{x^7}{7!}+\frac{x^9}{9!}-\frac{x^{11}}{11!}+

Confidence: 0

Mathematica

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_5358e65add04a6581bfdba85d5ab2bd0",
  "formula" : "\\sinx = x - \\frac{x^3}{3!}+\\frac{x^5}{5!}- \\frac{x^7}{7!}+\\frac{x^9}{9!}-\\frac{x^{11}}{11!}+",
  "semanticFormula" : "\\sinx = x - \\frac{x^3}{3!}+\\frac{x^5}{5!}- \\frac{x^7}{7!}+\\frac{x^9}{9!}-\\frac{x^{11}}{11!}+",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \\sinx [\\sinx]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) Unknown LaTeX Command: Reached unknown latex-command \\sinx [\\sinx]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \\sinx [\\sinx]"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "\\sin\\,x = x - \\frac{x^3}{3!}+\\frac{x^5}{5!}- \\frac{x^7}{7!}+\\frac{x^9}{9!}-\\frac{x^{11}}{11!}+\\,..", "x" ],
  "isPartOf" : [ "\\sin\\,x = x - \\frac{x^3}{3!}+\\frac{x^5}{5!}- \\frac{x^7}{7!}+\\frac{x^9}{9!}-\\frac{x^{11}}{11!}+\\,.." ],
  "definiens" : [ ]
}

Specify your own input