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 \frac{16}{\lambda(2\tau)} - 8}

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

Semantic latex: \frac{16}{\modularlambdatau@{2 \tau}} - 8

Confidence: 0.6805

Mathematica

Translation: Divide[16,ModularLambda[2*\[Tau]]]- 8

Information

Sub Equations

  • Divide[16,ModularLambda[2*\[Tau]]]- 8

Free variables

  • \[Tau]

Symbol info

  • Elliptic modular function; Example: \modularlambdatau@{\tau}

Will be translated to: ModularLambda[$0] Relevant links to definitions: DLMF: http://dlmf.nist.gov/23.15#E6 Mathematica: https://reference.wolfram.com/language/ref/ModularLambda.html

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \modularlambdatau [\modularlambdatau]

Tests

Symbolic
Numeric

Maple

Translation:

Information

Symbol info

  • (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \modularlambdatau [\modularlambdatau]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

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

Complete translation information:

{
  "id" : "FORMULA_6468917a235bfcd86b674f9e1a464b43",
  "formula" : "\\frac{16}{\\lambda(2\\tau)} - 8",
  "semanticFormula" : "\\frac{16}{\\modularlambdatau@{2 \\tau}} - 8",
  "confidence" : 0.6805,
  "translations" : {
    "Mathematica" : {
      "translation" : "Divide[16,ModularLambda[2*\\[Tau]]]- 8",
      "translationInformation" : {
        "subEquations" : [ "Divide[16,ModularLambda[2*\\[Tau]]]- 8" ],
        "freeVariables" : [ "\\[Tau]" ],
        "tokenTranslations" : {
          "\\modularlambdatau" : "Elliptic modular function; Example: \\modularlambdatau@{\\tau}\nWill be translated to: ModularLambda[$0]\nRelevant links to definitions:\nDLMF:         http://dlmf.nist.gov/23.15#E6\nMathematica:  https://reference.wolfram.com/language/ref/ModularLambda.html"
        }
      },
      "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" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\modularlambdatau [\\modularlambdatau]"
        }
      },
      "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" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\modularlambdatau [\\modularlambdatau]"
        }
      },
      "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" : 2
  } ],
  "includes" : [ "\\tau", "\\lambda", "\\lambda(\\tau)" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "function",
    "score" : 0.722
  }, {
    "definition" : "Hauptmodul for the group",
    "score" : 0.7125985104912714
  }, {
    "definition" : "graded character of any element",
    "score" : 0.6859086196238077
  }, {
    "definition" : "expansion",
    "score" : 0.6460746792928004
  }, {
    "definition" : "conjugacy class 4c of the monster group",
    "score" : 0.5988174995334326
  }, {
    "definition" : "monster vertex algebra",
    "score" : 0.46655930748162855
  } ]
}

Specify your own input