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 f_1(x)}

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

Semantic latex: f_1(x)

Confidence: 0

Mathematica

Translation: Subscript[f, 1][x]

Information

Sub Equations

  • Subscript[f, 1][x]

Free variables

  • x

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{f}_{1}')(x)

Information

Sub Equations

  • Symbol('{f}_{1}')(x)

Free variables

  • x

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation: f[1](x)

Information

Sub Equations

  • f[1](x)

Free variables

  • x

Symbol info

  • 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

Description

  • asymptotic series
  • series expansion
  • special case
  • ber
  • bei

Complete translation information:

{
  "id" : "FORMULA_ae06113ce0d044d277f917b8c6eef7bd",
  "formula" : "f_1(x)",
  "semanticFormula" : "f_1(x)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[f, 1][x]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[f, 1][x]" ],
        "freeVariables" : [ "x" ],
        "tokenTranslations" : {
          "f" : "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('{f}_{1}')(x)",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{f}_{1}')(x)" ],
        "freeVariables" : [ "x" ],
        "tokenTranslations" : {
          "f" : "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" : "f[1](x)",
      "translationInformation" : {
        "subEquations" : [ "f[1](x)" ],
        "freeVariables" : [ "x" ],
        "tokenTranslations" : {
          "f" : "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" : 2,
    "sentence" : 1,
    "word" : 27
  } ],
  "includes" : [ "x)", "x" ],
  "isPartOf" : [ "\\mathrm{bei}(x) \\sim \\frac{e^{\\frac{x}{\\sqrt{2}}}}{\\sqrt{2 \\pi x}} [f_1(x) \\sin \\alpha - g_1(x) \\cos \\alpha] - \\frac{\\mathrm{ker}(x)}{\\pi}", "\\mathrm{ber}(x) \\sim \\frac{e^{\\frac{x}{\\sqrt{2}}}}{\\sqrt{2 \\pi x}} \\left (f_1(x) \\cos \\alpha + g_1(x) \\sin \\alpha \\right ) - \\frac{\\mathrm{kei}(x)}{\\pi}", "f_1(x) = 1 + \\sum_{k \\geq 1} \\frac{\\cos(k \\pi / 4)}{k! (8x)^k} \\prod_{l = 1}^k (2l - 1)^2" ],
  "definiens" : [ {
    "definition" : "asymptotic series",
    "score" : 0.833589031361758
  }, {
    "definition" : "series expansion",
    "score" : 0.8220398029714824
  }, {
    "definition" : "special case",
    "score" : 0.7403188246952234
  }, {
    "definition" : "ber",
    "score" : 0.6231540443721655
  }, {
    "definition" : "bei",
    "score" : 0.5271746031746032
  } ]
}

Specify your own input