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 SL_2(\mathbb{Z})}

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

Semantic latex: SL_2(\mathbb{Z})

Confidence: 0

Mathematica

Translation: Subscript[SL, 2][Z]

Information

Sub Equations

  • Subscript[SL, 2][Z]

Free variables

  • Z

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{SL}_{2}')(Z)

Information

Sub Equations

  • Symbol('{SL}_{2}')(Z)

Free variables

  • Z

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation: SL[2](Z)

Information

Sub Equations

  • SL[2](Z)

Free variables

  • Z

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • full modular group
  • function on the upper half-plane
  • fact Klein 's modular j-invariant
  • lambda function under the canonical action
  • symmetric group

Complete translation information:

{
  "id" : "FORMULA_c8a5c475ac3118e6f6f9239d51c55eec",
  "formula" : "SL_2(\\mathbb{Z})",
  "semanticFormula" : "SL_2(\\mathbb{Z})",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[SL, 2][Z]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[SL, 2][Z]" ],
        "freeVariables" : [ "Z" ],
        "tokenTranslations" : {
          "SL" : "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('{SL}_{2}')(Z)",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{SL}_{2}')(Z)" ],
        "freeVariables" : [ "Z" ],
        "tokenTranslations" : {
          "SL" : "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" : "SL[2](Z)",
      "translationInformation" : {
        "subEquations" : [ "SL[2](Z)" ],
        "freeVariables" : [ "Z" ],
        "tokenTranslations" : {
          "SL" : "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" : 0,
    "sentence" : 4,
    "word" : 38
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "full modular group",
    "score" : 0.722
  }, {
    "definition" : "function on the upper half-plane",
    "score" : 0.6460746792928004
  }, {
    "definition" : "fact Klein 's modular j-invariant",
    "score" : 0.5049074255814494
  }, {
    "definition" : "lambda function under the canonical action",
    "score" : 0.5049074255814494
  }, {
    "definition" : "symmetric group",
    "score" : 0.46655930748162855
  } ]
}

Specify your own input