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 M_{\kappa,\mu}(z)}

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

Semantic latex: \WhittakerconfhyperM{\kappa}{\mu}@{z}

Confidence: 0.89310818131292

Mathematica

Translation: WhittakerM[\[Kappa], \[Mu], z]

Information

Sub Equations

  • WhittakerM[\[Kappa], \[Mu], z]

Free variables

  • \[Kappa]
  • \[Mu]
  • z

Symbol info

  • Whittaker confluent hypergeometric function; Example: \WhittakerconfhyperM{\kappa}{\mu}@{z}

Will be translated to: WhittakerM[$0, $1, $2] Relevant links to definitions: DLMF: http://dlmf.nist.gov/13.14#E2 Mathematica: https://reference.wolfram.com/language/ref/WhittakerM.html

Tests

Symbolic
Numeric

SymPy

Translation:

Information

Symbol info

  • (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \WhittakerconfhyperM [\WhittakerconfhyperM]

Tests

Symbolic
Numeric

Maple

Translation: WhittakerM(kappa, mu, z)

Information

Sub Equations

  • WhittakerM(kappa, mu, z)

Free variables

  • kappa
  • mu
  • z

Symbol info

  • Whittaker confluent hypergeometric function; Example: \WhittakerconfhyperM{\kappa}{\mu}@{z}

Will be translated to: WhittakerM($0, $1, $2) Relevant links to definitions: DLMF: http://dlmf.nist.gov/13.14#E2 Maple: https://www.maplesoft.com/support/help/maple/view.aspx?path=WhittakerM

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • function
  • Whittaker function
  • other word
  • solution
  • term of Kummer 's confluent hypergeometric function
  • opposite value
  • Whittaker

Complete translation information:

{
  "id" : "FORMULA_412a5e79c7ac93ba679cb038f9077d31",
  "formula" : "M_{\\kappa,\\mu}(z)",
  "semanticFormula" : "\\WhittakerconfhyperM{\\kappa}{\\mu}@{z}",
  "confidence" : 0.8931081813129245,
  "translations" : {
    "Mathematica" : {
      "translation" : "WhittakerM[\\[Kappa], \\[Mu], z]",
      "translationInformation" : {
        "subEquations" : [ "WhittakerM[\\[Kappa], \\[Mu], z]" ],
        "freeVariables" : [ "\\[Kappa]", "\\[Mu]", "z" ],
        "tokenTranslations" : {
          "\\WhittakerconfhyperM" : "Whittaker confluent hypergeometric function; Example: \\WhittakerconfhyperM{\\kappa}{\\mu}@{z}\nWill be translated to: WhittakerM[$0, $1, $2]\nRelevant links to definitions:\nDLMF:         http://dlmf.nist.gov/13.14#E2\nMathematica:  https://reference.wolfram.com/language/ref/WhittakerM.html"
        }
      },
      "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" : "",
      "translationInformation" : {
        "tokenTranslations" : {
          "Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\WhittakerconfhyperM [\\WhittakerconfhyperM]"
        }
      },
      "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" : "WhittakerM(kappa, mu, z)",
      "translationInformation" : {
        "subEquations" : [ "WhittakerM(kappa, mu, z)" ],
        "freeVariables" : [ "kappa", "mu", "z" ],
        "tokenTranslations" : {
          "\\WhittakerconfhyperM" : "Whittaker confluent hypergeometric function; Example: \\WhittakerconfhyperM{\\kappa}{\\mu}@{z}\nWill be translated to: WhittakerM($0, $1, $2)\nRelevant links to definitions:\nDLMF:  http://dlmf.nist.gov/13.14#E2\nMaple: https://www.maplesoft.com/support/help/maple/view.aspx?path=WhittakerM"
        }
      },
      "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" : 0,
    "sentence" : 5,
    "word" : 3
  } ],
  "includes" : [ "M", "W_{\\kappa,\\mu}(z)", "\\mu", "\\kappa", "z" ],
  "isPartOf" : [ "M_{\\kappa,\\mu}\\left(z\\right) = \\exp\\left(-z/2\\right)z^{\\mu+\\tfrac{1}{2}}M\\left(\\mu-\\kappa+\\tfrac{1}{2}, 1+2\\mu, z\\right)", "W_{\\kappa,\\mu}\\left(z\\right) = \\exp\\left(-z/2\\right)z^{\\mu+\\tfrac{1}{2}}U\\left(\\mu-\\kappa+\\tfrac{1}{2}, 1+2\\mu, z\\right)", "M_{\\kappa,\\mu}(z),W_{\\kappa,\\mu}(z)", "W_{\\kappa,\\mu}(z)" ],
  "definiens" : [ {
    "definition" : "function",
    "score" : 0.7244849196070415
  }, {
    "definition" : "Whittaker function",
    "score" : 0.6793245439387732
  }, {
    "definition" : "other word",
    "score" : 0.6687181434333315
  }, {
    "definition" : "solution",
    "score" : 0.6432331635625809
  }, {
    "definition" : "term of Kummer 's confluent hypergeometric function",
    "score" : 0.6432331635625809
  }, {
    "definition" : "opposite value",
    "score" : 0.6288842031023242
  }, {
    "definition" : "Whittaker",
    "score" : 0.6288842031023242
  } ]
}

Specify your own input