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}_1}

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

Semantic latex: \mathbf{j}_1

Confidence: 0

Mathematica

Translation: Subscript[j, 1]

Information

Sub Equations

  • Subscript[j, 1]

Free variables

  • Subscript[j, 1]

Tests

Symbolic
Numeric

SymPy

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

Information

Sub Equations

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

Free variables

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

Tests

Symbolic
Numeric

Maple

Translation: j[1]

Information

Sub Equations

  • j[1]

Free variables

  • j[1]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • angular momenta
  • angular momentum vector
  • construction of simultaneous eigenfunction
  • coupling
  • article on Clebsch -- Gordan coefficient
  • notation
  • technique of that article
  • total angular momentum state

Complete translation information:

{
  "id" : "FORMULA_a4dc23b5777f783da947f88fd7f25142",
  "formula" : "\\mathbf{j}_1",
  "semanticFormula" : "\\mathbf{j}_1",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[j, 1]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[j, 1]" ],
        "freeVariables" : [ "Subscript[j, 1]" ]
      },
      "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}_{1}')",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{j}_{1}')" ],
        "freeVariables" : [ "Symbol('{j}_{1}')" ]
      },
      "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[1]",
      "translationInformation" : {
        "subEquations" : [ "j[1]" ],
        "freeVariables" : [ "j[1]" ]
      },
      "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" : 0,
    "word" : 5
  }, {
    "section" : 1,
    "sentence" : 2,
    "word" : 21
  }, {
    "section" : 1,
    "sentence" : 3,
    "word" : 6
  } ],
  "includes" : [ "j" ],
  "isPartOf" : [ "\\mathbf{J}=\\mathbf{j}_1+\\mathbf{j}_2" ],
  "definiens" : [ {
    "definition" : "angular momenta",
    "score" : 0.722
  }, {
    "definition" : "angular momentum vector",
    "score" : 0.722
  }, {
    "definition" : "construction of simultaneous eigenfunction",
    "score" : 0.7125985104912714
  }, {
    "definition" : "coupling",
    "score" : 0.7125985104912714
  }, {
    "definition" : "article on Clebsch -- Gordan coefficient",
    "score" : 0.6460746792928004
  }, {
    "definition" : "notation",
    "score" : 0.5549195134411294
  }, {
    "definition" : "technique of that article",
    "score" : 0.5076623336817617
  }, {
    "definition" : "total angular momentum state",
    "score" : 0.4589400722435672
  } ]
}

Specify your own input