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 \Gamma_0(4)}

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

Semantic latex: \Gamma_0(4)

Confidence: 0

Mathematica

Translation: Subscript[\[CapitalGamma], 0][4]

Information

Sub Equations

  • Subscript[\[CapitalGamma], 0][4]

Free variables

  • Subscript[\[CapitalGamma], 0]

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{Symbol('Gamma')}_{0}')(4)

Information

Sub Equations

  • Symbol('{Symbol('Gamma')}_{0}')(4)

Free variables

  • Symbol('{Symbol('Gamma')}_{0}')

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Maple

Translation: Gamma[0](4)

Information

Sub Equations

  • Gamma[0](4)

Free variables

  • Gamma[0]

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Dependency Graph Information

Description

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

Complete translation information:

{
  "id" : "FORMULA_893b5c5b5e6455994c92c8827f063762",
  "formula" : "\\Gamma_0(4)",
  "semanticFormula" : "\\Gamma_0(4)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[\\[CapitalGamma], 0][4]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[\\[CapitalGamma], 0][4]" ],
        "freeVariables" : [ "Subscript[\\[CapitalGamma], 0]" ],
        "tokenTranslations" : {
          "\\Gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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('{Symbol('Gamma')}_{0}')(4)",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{Symbol('Gamma')}_{0}')(4)" ],
        "freeVariables" : [ "Symbol('{Symbol('Gamma')}_{0}')" ],
        "tokenTranslations" : {
          "\\Gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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" : "Gamma[0](4)",
      "translationInformation" : {
        "subEquations" : [ "Gamma[0](4)" ],
        "freeVariables" : [ "Gamma[0]" ],
        "tokenTranslations" : {
          "\\Gamma" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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" : 10
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "Hauptmodul for the group",
    "score" : 0.722
  }, {
    "definition" : "function",
    "score" : 0.6859086196238077
  }, {
    "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