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 \;_6\psi_6}

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

Semantic latex: _6\psi_6

Confidence: 0

Mathematica

Translation: Subscript[$0, 6]*Subscript[\[Psi], 6]

Information

Sub Equations

  • Subscript[$0, 6]*Subscript[\[Psi], 6]

Free variables

  • Subscript[\[Psi], 6]

Symbol info

  • Could be The reciprocal Fibonacci constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{$0}_{6}')*Symbol('{Symbol('psi')}_{6}')

Information

Sub Equations

  • Symbol('{$0}_{6}')*Symbol('{Symbol('psi')}_{6}')

Free variables

  • Symbol('{Symbol('psi')}_{6}')

Symbol info

  • Could be The reciprocal Fibonacci constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

Tests

Symbolic
Numeric

Maple

Translation: $0[6]*psi[6]

Information

Sub Equations

  • $0[6]*psi[6]

Free variables

  • psi[6]

Symbol info

  • Could be The reciprocal Fibonacci constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_6539fa336f5d57be7157d5d95ab7ac5c",
  "formula" : "_6\\psi_6",
  "semanticFormula" : "_6\\psi_6",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[$0, 6]*Subscript[\\[Psi], 6]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[$0, 6]*Subscript[\\[Psi], 6]" ],
        "freeVariables" : [ "Subscript[\\[Psi], 6]" ],
        "tokenTranslations" : {
          "\\psi" : "Could be The reciprocal Fibonacci constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n"
        }
      },
      "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" : "Symbol('{$0}_{6}')*Symbol('{Symbol('psi')}_{6}')",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{$0}_{6}')*Symbol('{Symbol('psi')}_{6}')" ],
        "freeVariables" : [ "Symbol('{Symbol('psi')}_{6}')" ],
        "tokenTranslations" : {
          "\\psi" : "Could be The reciprocal Fibonacci constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n"
        }
      },
      "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" : "$0[6]*psi[6]",
      "translationInformation" : {
        "subEquations" : [ "$0[6]*psi[6]" ],
        "freeVariables" : [ "psi[6]" ],
        "tokenTranslations" : {
          "\\psi" : "Could be The reciprocal Fibonacci constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n"
        }
      },
      "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" : [ ],
  "includes" : [ "\\psi", "\\;_6\\psi_6" ],
  "isPartOf" : [ "\\;_6\\psi_6" ],
  "definiens" : [ ]
}

Specify your own input