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(x,N;\alpha,\beta)}

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

Semantic latex: h_n(x,N;\alpha,\beta)

Confidence: 0

Mathematica

Translation: Subscript[h, n][x , N ; \[Alpha], \[Beta]]

Information

Sub Equations

  • Subscript[h, n][x , N ; \[Alpha], \[Beta]]

Free variables

  • N
  • \[Alpha]
  • \[Beta]
  • n
  • x

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Could be the second Feigenbaum constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{h}_{n}')(x , N ; Symbol('alpha'), Symbol('beta'))

Information

Sub Equations

  • Symbol('{h}_{n}')(x , N ; Symbol('alpha'), Symbol('beta'))

Free variables

  • N
  • Symbol('alpha')
  • Symbol('beta')
  • n
  • x

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Could be the second Feigenbaum constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

Tests

Symbolic
Numeric

Maple

Translation: h[n](x , N ; alpha , beta)

Information

Sub Equations

  • h[n](x , N ; alpha , beta)

Free variables

  • N
  • alpha
  • beta
  • n
  • x

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Could be the second Feigenbaum constant.

But this system doesn't know how to translate it as a constant. It was translated as a general letter.

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • Hahn polynomial
  • uniform lattice
  • parameter

Complete translation information:

{
  "id" : "FORMULA_6543938cb0edbe57fec0672c056b0d1b",
  "formula" : "h_n(x,N;\\alpha,\\beta)",
  "semanticFormula" : "h_n(x,N;\\alpha,\\beta)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[h, n][x , N ; \\[Alpha], \\[Beta]]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[h, n][x , N ; \\[Alpha], \\[Beta]]" ],
        "freeVariables" : [ "N", "\\[Alpha]", "\\[Beta]", "n", "x" ],
        "tokenTranslations" : {
          "h" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\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}')(x , N ; Symbol('alpha'), Symbol('beta'))",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{h}_{n}')(x , N ; Symbol('alpha'), Symbol('beta'))" ],
        "freeVariables" : [ "N", "Symbol('alpha')", "Symbol('beta')", "n", "x" ],
        "tokenTranslations" : {
          "h" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\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](x , N ; alpha , beta)",
      "translationInformation" : {
        "subEquations" : [ "h[n](x , N ; alpha , beta)" ],
        "freeVariables" : [ "N", "alpha", "beta", "n", "x" ],
        "tokenTranslations" : {
          "h" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "\\alpha" : "Could be the second Feigenbaum constant.\nBut this system doesn't know how to translate it as a constant. It was translated as a general letter.\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" : 3,
    "sentence" : 0,
    "word" : 4
  } ],
  "includes" : [ "n" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "Hahn polynomial",
    "score" : 0.7125985104912714
  }, {
    "definition" : "uniform lattice",
    "score" : 0.6460746792928004
  }, {
    "definition" : "parameter",
    "score" : 0.5988174995334326
  } ]
}

Specify your own input