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 D_-(x) = e^{x^2} \int_0^x e^{-t^2}\,dt.\!}

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

Semantic latex: D_-(x) = \expe^{x^2} \int_0^x \expe^{-t^2} \diff{t}

Confidence: 0

Mathematica

Translation: Subscript[D, -][x] == Exp[(x)^(2)]*Integrate[Exp[- (t)^(2)], {t, 0, x}, GenerateConditions->None]

Information

Sub Equations

  • Subscript[D, -][x] = Exp[(x)^(2)]*Integrate[Exp[- (t)^(2)], {t, 0, x}, GenerateConditions->None]

Free variables

  • x

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Recognizes e with power as the exponential function. It was translated as a function.

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{D}_{-}')(x) == exp((x)**(2))*integrate(exp(- (t)**(2)), (t, 0, x))

Information

Sub Equations

  • Symbol('{D}_{-}')(x) = exp((x)**(2))*integrate(exp(- (t)**(2)), (t, 0, x))

Free variables

  • x

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Recognizes e with power as the exponential function. It was translated as a function.

Tests

Symbolic
Numeric

Maple

Translation: D[-](x) = exp((x)^(2))*int(exp(- (t)^(2)), t = 0..x)

Information

Sub Equations

  • D[-](x) = exp((x)^(2))*int(exp(- (t)^(2)), t = 0..x)

Free variables

  • x

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Recognizes e with power as the exponential function. It was translated as a function.

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Complete translation information:

{
  "id" : "FORMULA_96cfc68e0ea1e8d59c7e7d95779f3e52",
  "formula" : "D_-(x) = e^{x^2} \\int_0^x e^{-t^2}dt",
  "semanticFormula" : "D_-(x) = \\expe^{x^2} \\int_0^x \\expe^{-t^2} \\diff{t}",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[D, -][x] == Exp[(x)^(2)]*Integrate[Exp[- (t)^(2)], {t, 0, x}, GenerateConditions->None]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[D, -][x] = Exp[(x)^(2)]*Integrate[Exp[- (t)^(2)], {t, 0, x}, GenerateConditions->None]" ],
        "freeVariables" : [ "x" ],
        "tokenTranslations" : {
          "D" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "\\expe" : "Recognizes e with power as the exponential function. It was translated as a function."
        }
      },
      "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('{D}_{-}')(x) == exp((x)**(2))*integrate(exp(- (t)**(2)), (t, 0, x))",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{D}_{-}')(x) = exp((x)**(2))*integrate(exp(- (t)**(2)), (t, 0, x))" ],
        "freeVariables" : [ "x" ],
        "tokenTranslations" : {
          "D" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "\\expe" : "Recognizes e with power as the exponential function. It was translated as a function."
        }
      },
      "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" : "D[-](x) = exp((x)^(2))*int(exp(- (t)^(2)), t = 0..x)",
      "translationInformation" : {
        "subEquations" : [ "D[-](x) = exp((x)^(2))*int(exp(- (t)^(2)), t = 0..x)" ],
        "freeVariables" : [ "x" ],
        "tokenTranslations" : {
          "D" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "\\expe" : "Recognizes e with power as the exponential function. It was translated as a function."
        }
      },
      "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" : [ ],
  "includes" : [ "D_-(x) = e^{x^2} \\int_0^x e^{-t^2}\\,dt.", "x" ],
  "isPartOf" : [ "D_-(x) = e^{x^2} \\int_0^x e^{-t^2}\\,dt." ],
  "definiens" : [ ]
}

Specify your own input