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 p_n(x;a,b,c|q)=a^{-n}e^{-inu}(abe^{2iu},ac,ad;q)_n*_4\Phi_3(q^{-n},abcdq^{n-1},ae^{i{(t+2u)}},ae^{-it};abe^{2iu},ac,ad;q;q)}

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

Semantic latex: p_n(x ; a , b , c|q) = a^{-n} \expe^{- \iunit nu}(ab \expe^{2 \iunit u} , ac , ad ; q)_n *_4 \cuspcatastrophe{3}@{t}{x}(q^{-n} , abcdq^{n-1} , a \expe^{\iunit{(t+2u)}} , a \expe^{- \iunit t} ; ab \expe^{2 \iunit u} , ac , ad ; q ; q)

Confidence: 0.48691274803852

Mathematica

Translation:

Information

Symbol info

  • (LaTeX -> Mathematica) Parenthesis mismatch in expression: Bracket-Error: open bracket | reached )

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) Parenthesis mismatch in expression: Bracket-Error: open bracket | reached )

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) Parenthesis mismatch in expression: Bracket-Error: open bracket | reached )

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • entry
  • example

Complete translation information:

{
  "id" : "FORMULA_67e28846328978f4e08bb6b69fe6c549",
  "formula" : "p_n(x;a,b,c|q)=a^{-n}e^{-inu}(abe^{2iu},ac,ad;q)_n*_4\\Phi_3(q^{-n},abcdq^{n-1},ae^{i{(t+2u)}},ae^{-it};abe^{2iu},ac,ad;q;q)",
  "semanticFormula" : "p_n(x ; a , b , c|q) = a^{-n} \\expe^{- \\iunit nu}(ab \\expe^{2 \\iunit u} , ac , ad ; q)_n *_4 \\cuspcatastrophe{3}@{t}{x}(q^{-n} , abcdq^{n-1} , a \\expe^{\\iunit{(t+2u)}} , a \\expe^{- \\iunit t} ; ab \\expe^{2 \\iunit u} , ac , ad ; q ; q)",
  "confidence" : 0.4869127480385238,
  "translations" : {
    "Mathematica" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Mathematica) Parenthesis mismatch in expression: Bracket-Error: open bracket | reached )"
        }
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    },
    "SymPy" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) Parenthesis mismatch in expression: Bracket-Error: open bracket | reached )"
        }
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    },
    "Maple" : {
      "translation" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) Parenthesis mismatch in expression: Bracket-Error: open bracket | reached )"
        }
      },
      "numericResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "wasAborted" : false,
        "crashed" : false,
        "testCalculationsGroups" : [ ]
      },
      "symbolicResults" : {
        "overallResult" : "SKIPPED",
        "numberOfTests" : 0,
        "numberOfFailedTests" : 0,
        "numberOfSuccessfulTests" : 0,
        "numberOfSkippedTests" : 0,
        "numberOfErrorTests" : 0,
        "crashed" : false,
        "testCalculationsGroup" : [ ]
      }
    }
  },
  "positions" : [ {
    "section" : 8,
    "sentence" : 3,
    "word" : 5
  } ],
  "includes" : [ "n", "*_4", "=", "x", "1", "2", "p" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "entry",
    "score" : 0.722
  }, {
    "definition" : "example",
    "score" : 0.7125985104912714
  } ]
}

Specify your own input