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

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

Semantic latex: H_n

Confidence: 0

Mathematica

Translation: Subscript[H, n]

Information

Sub Equations

  • Subscript[H, n]

Free variables

  • Subscript[H, n]
  • n

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{H}_{n}')

Information

Sub Equations

  • Symbol('{H}_{n}')

Free variables

  • Symbol('{H}_{n}')
  • n

Tests

Symbolic
Numeric

Maple

Translation: H[n]

Information

Sub Equations

  • H[n]

Free variables

  • H[n]
  • n

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • example
  • recurrence relation
  • polynomial
  • derivative
  • change of variable
  • result

Complete translation information:

{
  "id" : "FORMULA_d7f295cb8499408dbee77e8cd68ae9af",
  "formula" : "H_n",
  "semanticFormula" : "H_n",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[H, n]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[H, n]" ],
        "freeVariables" : [ "Subscript[H, n]", "n" ]
      },
      "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('{H}_{n}')",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{H}_{n}')" ],
        "freeVariables" : [ "Symbol('{H}_{n}')", "n" ]
      },
      "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" : "H[n]",
      "translationInformation" : {
        "subEquations" : [ "H[n]" ],
        "freeVariables" : [ "H[n]", "n" ]
      },
      "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" : 11,
    "word" : 2
  } ],
  "includes" : [ "n" ],
  "isPartOf" : [ "H_1=-\\pi^{-1/2}y+2\\pi^{-1/2}y^2F(y)", "H_a = \\pi^{-1} \\operatorname{P.V.} \\int_{-\\infty}^\\infty {e^{-ax^2} \\over y-x} \\, dx", "H_a=2\\pi^{-1/2}F(y\\sqrt a)", "\\left . H_n=(-1)^n \\frac{\\partial^nH_a}{\\partial a^n} \\right |_{a=1}", "H_n = \\pi^{-1} \\operatorname{P.V.} \\int_{-\\infty}^\\infty \\frac{x^{2n}e^{-x^2}}{y-x} \\, dx", "H_n = P_1(y)+P_2(y)F(y)", "{\\partial^nH_a \\over \\partial a^n} = (-1)^n\\pi^{-1} \\operatorname{P.V.} \\int_{-\\infty}^\\infty \\frac{x^{2n}e^{-ax^2}}{y-x} \\, dx", "H_{n+1}(y) = y^2 H_n(y) - \\frac{(2n-1)!!}{\\sqrt{\\pi} 2^n} y" ],
  "definiens" : [ {
    "definition" : "example",
    "score" : 0.6699230544300447
  }, {
    "definition" : "recurrence relation",
    "score" : 0.6687181434333315
  }, {
    "definition" : "polynomial",
    "score" : 0.5775629775816605
  }, {
    "definition" : "derivative",
    "score" : 0.5701117521354073
  }, {
    "definition" : "change of variable",
    "score" : 0.4968133815285695
  }, {
    "definition" : "result",
    "score" : 0.451864458892933
  } ]
}

Specify your own input