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{li}(x) - {x\over \ln x} = O \left( {x\over \ln^2 x} \right) \; . }

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

Semantic latex: \logint@{x} -{x\over \ln x} = O({x\over \ln^2 x})

Confidence: 0.65464247934701

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) No translation possible for given token: Cannot extract information from feature set: \logint [\logint]

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

Is part of

Complete translation information:

{
  "id" : "FORMULA_c119d3c8a724861c36704091f0ef979e",
  "formula" : "\\operatorname{li}(x) - {x\\over \\ln x} = O \\left( {x\\over \\ln^2 x} \\right)",
  "semanticFormula" : "\\logint@{x} -{x\\over \\ln x} = O({x\\over \\ln^2 x})",
  "confidence" : 0.6546424793470096,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) Unknown LaTeX Command: Reached unknown latex-command \\over [\\over]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\logint [\\logint]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) Unknown LaTeX Command: Reached unknown latex-command \\over [\\over]"
        }
      }
    }
  },
  "positions" : [ ],
  "includes" : [ "\\operatorname{li}(x) - {x\\over \\ln x} = O \\left( {x\\over \\ln^2 x} \\right) \\;", "x)", "x", "O" ],
  "isPartOf" : [ "\\operatorname{li}(x) - {x\\over \\ln x} = O \\left( {x\\over \\ln^2 x} \\right) \\;" ],
  "definiens" : [ ]
}

Specify your own input