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

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

Semantic latex: J_z

Confidence: 0

Mathematica

Translation: Subscript[J, z]

Information

Sub Equations

  • Subscript[J, z]

Free variables

  • Subscript[J, z]
  • z

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{J}_{z}')

Information

Sub Equations

  • Symbol('{J}_{z}')

Free variables

  • Symbol('{J}_{z}')
  • z

Tests

Symbolic
Numeric

Maple

Translation: J[z]

Information

Sub Equations

  • J[z]

Free variables

  • J[z]
  • z

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • construction of simultaneous eigenfunction
  • coupling
  • angular momenta
  • article on Clebsch -- Gordan coefficient

Complete translation information:

{
  "id" : "FORMULA_f42b7a5b430591c717b6c35b12ad0f49",
  "formula" : "J_z",
  "semanticFormula" : "J_z",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[J, z]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[J, z]" ],
        "freeVariables" : [ "Subscript[J, z]", "z" ]
      },
      "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}_{z}')",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{J}_{z}')" ],
        "freeVariables" : [ "Symbol('{J}_{z}')", "z" ]
      },
      "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[z]",
      "translationInformation" : {
        "subEquations" : [ "J[z]" ],
        "freeVariables" : [ "J[z]", "z" ]
      },
      "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" : 17
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "construction of simultaneous eigenfunction",
    "score" : 0.6460746792928004
  }, {
    "definition" : "coupling",
    "score" : 0.5988174995334326
  }, {
    "definition" : "angular momenta",
    "score" : 0.5500952380952381
  }, {
    "definition" : "article on Clebsch -- Gordan coefficient",
    "score" : 0.5500952380952381
  } ]
}

Specify your own input