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 q^{-1} + 20q - 62q^3 + \dots}

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

Semantic latex: q^{-1} + 20q - 62q^3 + \dots

Confidence: 0

Mathematica

Translation: (q)^(- 1)+ 20*q - 62*(q)^(3)+ \[Ellipsis]

Information

Sub Equations

  • (q)^(- 1)+ 20*q - 62*(q)^(3)+ \[Ellipsis]

Free variables

  • q

Tests

Symbolic
Numeric

SymPy

Translation: (q)**(- 1)+ 20*q - 62*(q)**(3)+ null

Information

Sub Equations

  • (q)**(- 1)+ 20*q - 62*(q)**(3)+ null

Free variables

  • q

Tests

Symbolic
Numeric

Maple

Translation: (q)^(- 1)+ 20*q - 62*(q)^(3)+ ..

Information

Sub Equations

  • (q)^(- 1)+ 20*q - 62*(q)^(3)+ ..

Free variables

  • q

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • expansion
  • graded character of any element
  • Hauptmodul for the group
  • conjugacy class 4c of the monster group
  • function
  • monster vertex algebra

Complete translation information:

{
  "id" : "FORMULA_201a95ae50fc9c25d2a745afedc7c44d",
  "formula" : "q^{-1} + 20q - 62q^3 + \\dots",
  "semanticFormula" : "q^{-1} + 20q - 62q^3 + \\dots",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "(q)^(- 1)+ 20*q - 62*(q)^(3)+ \\[Ellipsis]",
      "translationInformation" : {
        "subEquations" : [ "(q)^(- 1)+ 20*q - 62*(q)^(3)+ \\[Ellipsis]" ],
        "freeVariables" : [ "q" ]
      },
      "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" : "(q)**(- 1)+ 20*q - 62*(q)**(3)+ null",
      "translationInformation" : {
        "subEquations" : [ "(q)**(- 1)+ 20*q - 62*(q)**(3)+ null" ],
        "freeVariables" : [ "q" ]
      },
      "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" : "(q)^(- 1)+ 20*q - 62*(q)^(3)+ ..",
      "translationInformation" : {
        "subEquations" : [ "(q)^(- 1)+ 20*q - 62*(q)^(3)+ .." ],
        "freeVariables" : [ "q" ]
      },
      "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" : 4,
    "sentence" : 0,
    "word" : 17
  } ],
  "includes" : [ "q" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "expansion",
    "score" : 0.722
  }, {
    "definition" : "graded character of any element",
    "score" : 0.7125985104912714
  }, {
    "definition" : "Hauptmodul for the group",
    "score" : 0.6859086196238077
  }, {
    "definition" : "conjugacy class 4c of the monster group",
    "score" : 0.6460746792928004
  }, {
    "definition" : "function",
    "score" : 0.6460746792928004
  }, {
    "definition" : "monster vertex algebra",
    "score" : 0.5049074255814494
  } ]
}

Specify your own input