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 \Phi_0(z) = 1}

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

Semantic latex: \Phi_0(z) = 1

Confidence: 0

Mathematica

Translation: Subscript[\[CapitalPhi], 0][z] == 1

Information

Sub Equations

  • Subscript[\[CapitalPhi], 0][z] = 1

Free variables

  • Subscript[\[CapitalPhi], 0]
  • z

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{Symbol('Phi')}_{0}')(z) == 1

Information

Sub Equations

  • Symbol('{Symbol('Phi')}_{0}')(z) = 1

Free variables

  • Symbol('{Symbol('Phi')}_{0}')
  • z

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation: Phi[0](z) = 1

Information

Sub Equations

  • Phi[0](z) = 1

Free variables

  • Phi[0]
  • z

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • polynomial
  • coefficient
  • complex number with absolute value
  • Szegő 's recurrence
  • Verblunsky coefficient

Complete translation information:

{
  "id" : "FORMULA_2601f97f3f5b7b7ec4a6ff21615ccce9",
  "formula" : "\\Phi_0(z) = 1",
  "semanticFormula" : "\\Phi_0(z) = 1",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[\\[CapitalPhi], 0][z] == 1",
      "translationInformation" : {
        "subEquations" : [ "Subscript[\\[CapitalPhi], 0][z] = 1" ],
        "freeVariables" : [ "Subscript[\\[CapitalPhi], 0]", "z" ],
        "tokenTranslations" : {
          "\\Phi" : "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('Phi')}_{0}')(z) == 1",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{Symbol('Phi')}_{0}')(z) = 1" ],
        "freeVariables" : [ "Symbol('{Symbol('Phi')}_{0}')", "z" ],
        "tokenTranslations" : {
          "\\Phi" : "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" : "Phi[0](z) = 1",
      "translationInformation" : {
        "subEquations" : [ "Phi[0](z) = 1" ],
        "freeVariables" : [ "Phi[0]", "z" ],
        "tokenTranslations" : {
          "\\Phi" : "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" : 2,
    "sentence" : 0,
    "word" : 5
  } ],
  "includes" : [ "\\Phi_n(z)" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "polynomial",
    "score" : 0.7125985104912714
  }, {
    "definition" : "coefficient",
    "score" : 0.6859086196238077
  }, {
    "definition" : "complex number with absolute value",
    "score" : 0.6859086196238077
  }, {
    "definition" : "Szegő 's recurrence",
    "score" : 0.5988174995334326
  }, {
    "definition" : "Verblunsky coefficient",
    "score" : 0.5500952380952381
  } ]
}

Specify your own input