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{R})}

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

Semantic latex: SL(2,\mathbb{R})

Confidence: 0

Mathematica

Translation: SL[2 , R]

Information

Sub Equations

  • SL[2 , R]

Free variables

  • R

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation: SL(2 , R)

Information

Sub Equations

  • SL(2 , R)

Free variables

  • R

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation: SL(2 , R)

Information

Sub Equations

  • SL(2 , R)

Free variables

  • R

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • double coset space
  • real integral representation
  • study of harmonic analysis
  • spherical function
  • Zonal

Complete translation information:

{
  "id" : "FORMULA_ebfbe0c14bf5e09c16aadffacde9a2f4",
  "formula" : "SL(2,\\mathbb{R})",
  "semanticFormula" : "SL(2,\\mathbb{R})",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "SL[2 , R]",
      "translationInformation" : {
        "subEquations" : [ "SL[2 , R]" ],
        "freeVariables" : [ "R" ],
        "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" : "SL(2 , R)",
      "translationInformation" : {
        "subEquations" : [ "SL(2 , R)" ],
        "freeVariables" : [ "R" ],
        "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 , R)",
      "translationInformation" : {
        "subEquations" : [ "SL(2 , R)" ],
        "freeVariables" : [ "R" ],
        "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" : 6,
    "sentence" : 0,
    "word" : 25
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "double coset space",
    "score" : 0.7125985104912714
  }, {
    "definition" : "real integral representation",
    "score" : 0.6460746792928004
  }, {
    "definition" : "study of harmonic analysis",
    "score" : 0.6460746792928004
  }, {
    "definition" : "spherical function",
    "score" : 0.5988174995334326
  }, {
    "definition" : "Zonal",
    "score" : 0.5988174995334326
  } ]
}

Specify your own input