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

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

Semantic latex: K_v(x,y)

Confidence: 0

Mathematica

Translation: Subscript[K, v][x , y]

Information

Sub Equations

  • Subscript[K, v][x , y]

Free variables

  • v
  • x
  • y

Symbol info

  • 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)

Information

Sub Equations

  • Symbol('{K}_{v}')(x , y)

Free variables

  • v
  • x
  • y

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation: K[v](x , y)

Information

Sub Equations

  • K[v](x , y)

Free variables

  • v
  • x
  • y

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

Description

  • type incomplete-version of Bessel function
  • advantage
  • associated Anger -- Weber function
  • mathematician
  • recurrence relation
  • example
  • type generalized-version of incomplete gamma function
  • Digital Library of Mathematical Functions

Complete translation information:

{
  "id" : "FORMULA_05d0385b82c74db7aeb6284efd0fa10f",
  "formula" : "K_v(x,y)",
  "semanticFormula" : "K_v(x,y)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[K, v][x , y]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[K, v][x , y]" ],
        "freeVariables" : [ "v", "x", "y" ],
        "tokenTranslations" : {
          "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)",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{K}_{v}')(x , y)" ],
        "freeVariables" : [ "v", "x", "y" ],
        "tokenTranslations" : {
          "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)",
      "translationInformation" : {
        "subEquations" : [ "K[v](x , y)" ],
        "freeVariables" : [ "v", "x", "y" ],
        "tokenTranslations" : {
          "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" : [ {
    "section" : 1,
    "sentence" : 0,
    "word" : 17
  }, {
    "section" : 2,
    "sentence" : 0,
    "word" : 0
  } ],
  "includes" : [ ],
  "isPartOf" : [ "K_v(x,y)=\\int_1^\\infty\\frac{e^{-xt-\\frac{y}{t}}}{t^{v+1}}dt", "K_v(x,y)=x^v\\Gamma(-v,x;xy)", "K_v(x,y)+K_{-v}(y,x)=\\frac{2x^\\frac{v}{2}}{y^\\frac{v}{2}}K_v(2\\sqrt{xy})", "\\mathbf{A}_\\nu(z)=\\frac{1}{\\pi}\\int_0^\\infty e^{-\\nu t-z\\sinh t}dt=\\frac{1}{\\pi}\\int_0^\\infty e^{-(\\nu+1)t-\\frac{ze^t}{2}+\\frac{z}{2e^t}}d(e^t)=\\frac{1}{\\pi}\\int_1^\\infty\\frac{e^{-\\frac{zt}{2}+\\frac{z}{2t}}}{t^{\\nu+1}}dt=\\frac{1}{\\pi}K_\\nu\\left(\\frac{z}{2},-\\frac{z}{2}\\right)", "xK_{v-1}(x,y)+vK_v(x,y)-yK_{v+1}(x,y)=e^{-x-y}" ],
  "definiens" : [ {
    "definition" : "type incomplete-version of Bessel function",
    "score" : 0.8487695096654806
  }, {
    "definition" : "advantage",
    "score" : 0.6954080343007951
  }, {
    "definition" : "associated Anger -- Weber function",
    "score" : 0.6288842031023242
  }, {
    "definition" : "mathematician",
    "score" : 0.6042528684491243
  }, {
    "definition" : "recurrence relation",
    "score" : 0.5775629775816605
  }, {
    "definition" : "example",
    "score" : 0.5329047619047619
  }, {
    "definition" : "type generalized-version of incomplete gamma function",
    "score" : 0.4904718574912855
  }, {
    "definition" : "Digital Library of Mathematical Functions",
    "score" : 0.48771694939097315
  } ]
}

Specify your own input