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}^2}

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

Semantic latex: \mathbf{J}^2

Confidence: 0

Mathematica

Translation: (J)^(2)

Information

Sub Equations

  • (J)^(2)

Free variables

  • J

Tests

Symbolic
Numeric

SymPy

Translation: (J)**(2)

Information

Sub Equations

  • (J)**(2)

Free variables

  • J

Tests

Symbolic
Numeric

Maple

Translation: (J)^(2)

Information

Sub Equations

  • (J)^(2)

Free variables

  • J

Tests

Symbolic
Numeric

Dependency Graph Information

Description

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

Complete translation information:

{
  "id" : "FORMULA_b04f900bb01eb99cbbf08ff85883715b",
  "formula" : "\\mathbf{J}^2",
  "semanticFormula" : "\\mathbf{J}^2",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "(J)^(2)",
      "translationInformation" : {
        "subEquations" : [ "(J)^(2)" ],
        "freeVariables" : [ "J" ]
      },
      "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" : "(J)**(2)",
      "translationInformation" : {
        "subEquations" : [ "(J)**(2)" ],
        "freeVariables" : [ "J" ]
      },
      "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)^(2)",
      "translationInformation" : {
        "subEquations" : [ "(J)^(2)" ],
        "freeVariables" : [ "J" ]
      },
      "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" : 15
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "construction of simultaneous eigenfunction",
    "score" : 0.6859086196238077
  }, {
    "definition" : "coupling",
    "score" : 0.6460746792928004
  }, {
    "definition" : "angular momenta",
    "score" : 0.5988174995334326
  }, {
    "definition" : "article on Clebsch -- Gordan coefficient",
    "score" : 0.5988174995334326
  } ]
}

Specify your own input