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 xK_{v-1}(x,y)+vK_v(x,y)-yK_{v+1}(x,y)=e^{-x-y}}

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

Semantic latex: xK_{v-1}(x , y) + vK_v(x , y) - yK_{v+1}(x , y) = \expe^{-x-y}

Confidence: 0

Mathematica

Translation: Subscript[xK, v - 1][x , y]+ Subscript[vK, v][x , y]- Subscript[yK, v + 1][x , y] == Exp[- x - y]

Information

Sub Equations

  • Subscript[xK, v - 1][x , y]+ Subscript[vK, v][x , y]- Subscript[yK, v + 1][x , y] = Exp[- x - y]

Free variables

  • v
  • x
  • y

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Recognizes e with power as the exponential function. It was translated as a function.
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{xK}_{v - 1}')(x , y)+ Symbol('{vK}_{v}')(x , y)- Symbol('{yK}_{v + 1}')(x , y) == exp(- x - y)

Information

Sub Equations

  • Symbol('{xK}_{v - 1}')(x , y)+ Symbol('{vK}_{v}')(x , y)- Symbol('{yK}_{v + 1}')(x , y) = exp(- x - y)

Free variables

  • v
  • x
  • y

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Recognizes e with power as the exponential function. It was translated as a function.
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Maple

Translation: xK[v - 1](x , y)+ vK[v](x , y)- yK[v + 1](x , y) = exp(- x - y)

Information

Sub Equations

  • xK[v - 1](x , y)+ vK[v](x , y)- yK[v + 1](x , y) = exp(- x - y)

Free variables

  • v
  • x
  • y

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Recognizes e with power as the exponential function. It was translated as a function.
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • recurrence relation

Complete translation information:

{
  "id" : "FORMULA_060520c6579edb8a3d6dfebe0d21f795",
  "formula" : "xK_{v-1}(x,y)+vK_v(x,y)-yK_{v+1}(x,y)=e^{-x-y}",
  "semanticFormula" : "xK_{v-1}(x , y) + vK_v(x , y) - yK_{v+1}(x , y) = \\expe^{-x-y}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[xK, v - 1][x , y]+ Subscript[vK, v][x , y]- Subscript[yK, v + 1][x , y] == Exp[- x - y]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[xK, v - 1][x , y]+ Subscript[vK, v][x , y]- Subscript[yK, v + 1][x , y] = Exp[- x - y]" ],
        "freeVariables" : [ "v", "x", "y" ],
        "tokenTranslations" : {
          "yK" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "xK" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
          "vK" : "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('{xK}_{v - 1}')(x , y)+ Symbol('{vK}_{v}')(x , y)- Symbol('{yK}_{v + 1}')(x , y) == exp(- x - y)",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{xK}_{v - 1}')(x , y)+ Symbol('{vK}_{v}')(x , y)- Symbol('{yK}_{v + 1}')(x , y) = exp(- x - y)" ],
        "freeVariables" : [ "v", "x", "y" ],
        "tokenTranslations" : {
          "yK" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "xK" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
          "vK" : "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" : "xK[v - 1](x , y)+ vK[v](x , y)- yK[v + 1](x , y) = exp(- x - y)",
      "translationInformation" : {
        "subEquations" : [ "xK[v - 1](x , y)+ vK[v](x , y)- yK[v + 1](x , y) = exp(- x - y)" ],
        "freeVariables" : [ "v", "x", "y" ],
        "tokenTranslations" : {
          "yK" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "xK" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
          "vK" : "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" : 6
  } ],
  "includes" : [ "K_v(x,y)" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "recurrence relation",
    "score" : 0.6859086196238077
  } ]
}

Specify your own input