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 K_v(x,y)=\int_1^\infty\frac{e^{-xt-\frac{y}{t}}}{t^{v+1}}~dt}

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

Semantic latex: K_v(x , y) = \int_1^\infty \frac{\expe^{-xt-\frac{y}{t}}}{t^{v+1}} \diff{t}

Confidence: 0

Mathematica

Translation: Subscript[K, v][x , y] == Integrate[Divide[Exp[- x*t -Divide[y,t]],(t)^(v + 1)], {t, 1, Infinity}, GenerateConditions->None]

Information

Sub Equations

  • Subscript[K, v][x , y] = Integrate[Divide[Exp[- x*t -Divide[y,t]],(t)^(v + 1)], {t, 1, Infinity}, GenerateConditions->None]

Free variables

  • v
  • x
  • y

Symbol info

  • 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('{K}_{v}')(x , y) == integrate((exp(- x*t -(y)/(t)))/((t)**(v + 1)), (t, 1, oo))

Information

Sub Equations

  • Symbol('{K}_{v}')(x , y) = integrate((exp(- x*t -(y)/(t)))/((t)**(v + 1)), (t, 1, oo))

Free variables

  • v
  • x
  • y

Symbol info

  • 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: K[v](x , y) = int((exp(- x*t -(y)/(t)))/((t)^(v + 1)), t = 1..infinity)

Information

Sub Equations

  • K[v](x , y) = int((exp(- x*t -(y)/(t)))/((t)^(v + 1)), t = 1..infinity)

Free variables

  • v
  • x
  • y

Symbol info

  • 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

Is part of

Complete translation information:

{
  "id" : "FORMULA_d7109b5d2be1665478923c67cbbf80e2",
  "formula" : "K_v(x,y)=\\int_1^\\infty\\frac{e^{-xt-\\frac{y}{t}}}{t^{v+1}}~dt",
  "semanticFormula" : "K_v(x , y) = \\int_1^\\infty \\frac{\\expe^{-xt-\\frac{y}{t}}}{t^{v+1}} \\diff{t}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[K, v][x , y] == Integrate[Divide[Exp[- x*t -Divide[y,t]],(t)^(v + 1)], {t, 1, Infinity}, GenerateConditions->None]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[K, v][x , y] = Integrate[Divide[Exp[- x*t -Divide[y,t]],(t)^(v + 1)], {t, 1, Infinity}, GenerateConditions->None]" ],
        "freeVariables" : [ "v", "x", "y" ],
        "tokenTranslations" : {
          "\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
          "K" : "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('{K}_{v}')(x , y) == integrate((exp(- x*t -(y)/(t)))/((t)**(v + 1)), (t, 1, oo))",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{K}_{v}')(x , y) = integrate((exp(- x*t -(y)/(t)))/((t)**(v + 1)), (t, 1, oo))" ],
        "freeVariables" : [ "v", "x", "y" ],
        "tokenTranslations" : {
          "\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
          "K" : "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" : "K[v](x , y) = int((exp(- x*t -(y)/(t)))/((t)^(v + 1)), t = 1..infinity)",
      "translationInformation" : {
        "subEquations" : [ "K[v](x , y) = int((exp(- x*t -(y)/(t)))/((t)^(v + 1)), t = 1..infinity)" ],
        "freeVariables" : [ "v", "x", "y" ],
        "tokenTranslations" : {
          "\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
          "K" : "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" : [ ],
  "includes" : [ "K_v(x,y)=\\int_1^\\infty\\frac{e^{-xt-\\frac{y}{t}}}{t^{v+1}}dt", "K_v(x,y)" ],
  "isPartOf" : [ "K_v(x,y)=\\int_1^\\infty\\frac{e^{-xt-\\frac{y}{t}}}{t^{v+1}}dt" ],
  "definiens" : [ ]
}

Specify your own input