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 z \in \Omega_{a}}

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

Semantic latex: z \in \Omega_{a}

Confidence: 0

Mathematica

Translation: z \[Element]Subscript[\[CapitalOmega], a]

Information

Free variables

  • Subscript[\[CapitalOmega], a]
  • a
  • z

Symbol info

  • Could be The omega constant == the Adamchik constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

Tests

Symbolic
Numeric

SymPy

Translation: z null Symbol('{Symbol('Omega')}_{a}')

Information

Free variables

  • Symbol('{Symbol('Omega')}_{a}')
  • a
  • z

Symbol info

  • Could be The omega constant == the Adamchik constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

Tests

Symbolic
Numeric

Maple

Translation: z in Omega[a]

Information

Free variables

  • Omega[a]
  • a
  • z

Symbol info

  • Could be The omega constant == the Adamchik constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • asymptotic expansion
  • Pochhammer symbol

Complete translation information:

{
  "id" : "FORMULA_07469271d74a62ad4b2e278155cdb498",
  "formula" : "z \\in \\Omega_{a}",
  "semanticFormula" : "z \\in \\Omega_{a}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "z \\[Element]Subscript[\\[CapitalOmega], a]",
      "translationInformation" : {
        "freeVariables" : [ "Subscript[\\[CapitalOmega], a]", "a", "z" ],
        "tokenTranslations" : {
          "\\Omega" : "Could be The omega constant == the Adamchik constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n"
        }
      },
      "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" : "z null Symbol('{Symbol('Omega')}_{a}')",
      "translationInformation" : {
        "freeVariables" : [ "Symbol('{Symbol('Omega')}_{a}')", "a", "z" ],
        "tokenTranslations" : {
          "\\Omega" : "Could be The omega constant == the Adamchik constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n"
        }
      },
      "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" : "z in Omega[a]",
      "translationInformation" : {
        "freeVariables" : [ "Omega[a]", "a", "z" ],
        "tokenTranslations" : {
          "\\Omega" : "Could be The omega constant == the Adamchik constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\n"
        }
      },
      "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" : 1,
    "word" : 5
  } ],
  "includes" : [ "z", "a" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "asymptotic expansion",
    "score" : 0.6460746792928004
  }, {
    "definition" : "Pochhammer symbol",
    "score" : 0.5500952380952381
  } ]
}

Specify your own input