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 H(a,u) = \frac{U(u/a,1/4 a^2)}{a\sqrt \pi},}

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

Semantic latex: \HeavisideH@{x}(a , u) = \frac{\VoigtU@{u / a}{1 / 4 a^2}}{a \sqrt{\cpi}}

Confidence: 0.61614955794492

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \VoigtU [\VoigtU]

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \HeavisideH [\HeavisideH]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \VoigtU [\VoigtU]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • complementary error function
  • erfc
  • Faddeeva function
  • line broadening function
  • Voigt function

Complete translation information:

{
  "id" : "FORMULA_33c0849460ed9ca8df0913109dd1de21",
  "formula" : "H(a,u) = \\frac{U(u/a,1/4 a^2)}{a\\sqrt \\pi}",
  "semanticFormula" : "\\HeavisideH@{x}(a , u) = \\frac{\\VoigtU@{u / a}{1 / 4 a^2}}{a \\sqrt{\\cpi}}",
  "confidence" : 0.616149557944919,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \\VoigtU [\\VoigtU]"
        }
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\HeavisideH [\\HeavisideH]"
        }
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\VoigtU [\\VoigtU]"
        }
      }
    }
  },
  "positions" : [ {
    "section" : 7,
    "sentence" : 0,
    "word" : 24
  } ],
  "includes" : [ "H" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "complementary error function",
    "score" : 0.6460746792928004
  }, {
    "definition" : "erfc",
    "score" : 0.5988174995334326
  }, {
    "definition" : "Faddeeva function",
    "score" : 0.5500952380952381
  }, {
    "definition" : "line broadening function",
    "score" : 0.5500952380952381
  }, {
    "definition" : "Voigt function",
    "score" : 0.5500952380952381
  } ]
}

Specify your own input