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 \mathbf{j}_4}

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

Semantic latex: \mathbf{j}_4

Confidence: 0

Mathematica

Translation: Subscript[j, 4]

Information

Sub Equations

  • Subscript[j, 4]

Free variables

  • Subscript[j, 4]

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{j}_{4}')

Information

Sub Equations

  • Symbol('{j}_{4}')

Free variables

  • Symbol('{j}_{4}')

Tests

Symbolic
Numeric

Maple

Translation: j[4]

Information

Sub Equations

  • j[4]

Free variables

  • j[4]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • notation
  • technique of that article
  • total angular momentum state
  • angular momentum vector

Complete translation information:

{
  "id" : "FORMULA_6f810a3e17d100a5235dbc998313f72f",
  "formula" : "\\mathbf{j}_4",
  "semanticFormula" : "\\mathbf{j}_4",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[j, 4]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[j, 4]" ],
        "freeVariables" : [ "Subscript[j, 4]" ]
      },
      "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('{j}_{4}')",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{j}_{4}')" ],
        "freeVariables" : [ "Symbol('{j}_{4}')" ]
      },
      "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" : "j[4]",
      "translationInformation" : {
        "subEquations" : [ "j[4]" ],
        "freeVariables" : [ "j[4]" ]
      },
      "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" : 1,
    "sentence" : 2,
    "word" : 25
  }, {
    "section" : 1,
    "sentence" : 3,
    "word" : 8
  } ],
  "includes" : [ "j", "_{4}" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "notation",
    "score" : 0.5988174995334326
  }, {
    "definition" : "technique of that article",
    "score" : 0.5500952380952381
  }, {
    "definition" : "total angular momentum state",
    "score" : 0.5049074255814494
  }, {
    "definition" : "angular momentum vector",
    "score" : 0.4145803640193895
  } ]
}

Specify your own input