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 R_N(x) = O\left(x^{1 - 2N} e^{-x^2}\right)}

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

Semantic latex: R_N(x) = O(x^{1 - 2N} \expe^{-x^2})

Confidence: 0

Mathematica

Translation: Subscript[R, N][x] == O[(x)^(1 - 2*N)* Exp[- (x)^(2)]]

Information

Sub Equations

  • Subscript[R, N][x] = O[(x)^(1 - 2*N)* Exp[- (x)^(2)]]

Free variables

  • N
  • x

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{R}_{N}')(x) == O((x)**(1 - 2*N)* exp(- (x)**(2)))

Information

Sub Equations

  • Symbol('{R}_{N}')(x) = O((x)**(1 - 2*N)* exp(- (x)**(2)))

Free variables

  • N
  • x

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation: R[N](x) = O((x)^(1 - 2*N)* exp(- (x)^(2)))

Information

Sub Equations

  • R[N](x) = O((x)^(1 - 2*N)* exp(- (x)^(2)))

Free variables

  • N
  • x

Symbol info

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

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Description

  • remainder
  • Landau notation
  • one
  • meaning as asymptotic expansion
  • finite
  • series

Complete translation information:

{
  "id" : "FORMULA_d22fcf17559bdb137ac6d9a4bbf35430",
  "formula" : "R_N(x) = O\\left(x^{1 - 2N} e^{-x^2}\\right)",
  "semanticFormula" : "R_N(x) = O(x^{1 - 2N} \\expe^{-x^2})",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[R, N][x] == O[(x)^(1 - 2*N)* Exp[- (x)^(2)]]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[R, N][x] = O[(x)^(1 - 2*N)* Exp[- (x)^(2)]]" ],
        "freeVariables" : [ "N", "x" ],
        "tokenTranslations" : {
          "\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
          "R" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "O" : "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('{R}_{N}')(x) == O((x)**(1 - 2*N)* exp(- (x)**(2)))",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{R}_{N}')(x) = O((x)**(1 - 2*N)* exp(- (x)**(2)))" ],
        "freeVariables" : [ "N", "x" ],
        "tokenTranslations" : {
          "\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
          "R" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "O" : "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" : "R[N](x) = O((x)^(1 - 2*N)* exp(- (x)^(2)))",
      "translationInformation" : {
        "subEquations" : [ "R[N](x) = O((x)^(1 - 2*N)* exp(- (x)^(2)))" ],
        "freeVariables" : [ "N", "x" ],
        "tokenTranslations" : {
          "\\expe" : "Recognizes e with power as the exponential function. It was translated as a function.",
          "R" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "O" : "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" : 8,
    "sentence" : 2,
    "word" : 32
  } ],
  "includes" : [ "e^{-t^2}", "x", "e", "x)", "x) =", "N" ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "remainder",
    "score" : 0.7125985104912714
  }, {
    "definition" : "Landau notation",
    "score" : 0.6859086196238077
  }, {
    "definition" : "one",
    "score" : 0.6460746792928004
  }, {
    "definition" : "meaning as asymptotic expansion",
    "score" : 0.5988174995334326
  }, {
    "definition" : "finite",
    "score" : 0.5500952380952381
  }, {
    "definition" : "series",
    "score" : 0.5500952380952381
  } ]
}

Specify your own input