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 (x(t),y(t))}

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

Semantic latex: (x(t),y(t))

Confidence: 0

Mathematica

Translation: (x[t], y[t])

Information

Sub Equations

  • (x[t], y[t])

Free variables

  • t

Symbol info

  • 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: (x(t), y(t))

Information

Sub Equations

  • (x(t), y(t))

Free variables

  • t

Symbol info

  • 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: (x(t), y(t))

Information

Sub Equations

  • (x(t), y(t))

Free variables

  • t

Symbol info

  • 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

Is part of

Description

  • angle
  • axis
  • astronomy
  • geometric meaning
  • parameter
  • de La
  • limit
  • left vertex
  • Drawing ellipsis

Complete translation information:

{
  "id" : "FORMULA_f63f464567dcf053679fb07cdc0ca918",
  "formula" : "(x(t),y(t))",
  "semanticFormula" : "(x(t),y(t))",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "(x[t], y[t])",
      "translationInformation" : {
        "subEquations" : [ "(x[t], y[t])" ],
        "freeVariables" : [ "t" ],
        "tokenTranslations" : {
          "x" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "y" : "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" : "(x(t), y(t))",
      "translationInformation" : {
        "subEquations" : [ "(x(t), y(t))" ],
        "freeVariables" : [ "t" ],
        "tokenTranslations" : {
          "x" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "y" : "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" : "(x(t), y(t))",
      "translationInformation" : {
        "subEquations" : [ "(x(t), y(t))" ],
        "freeVariables" : [ "t" ],
        "tokenTranslations" : {
          "x" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "y" : "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" : 10,
    "sentence" : 1,
    "word" : 17
  } ],
  "includes" : [ "y", "t", "x", "y(x)" ],
  "isPartOf" : [ "\\lim_{u \\to \\pm \\infty} (x(u),\\, y(u)) = (-a,\\, 0)\\;" ],
  "definiens" : [ {
    "definition" : "angle",
    "score" : 0.6954080343007951
  }, {
    "definition" : "axis",
    "score" : 0.6954080343007951
  }, {
    "definition" : "astronomy",
    "score" : 0.6288842031023242
  }, {
    "definition" : "geometric meaning",
    "score" : 0.6288842031023242
  }, {
    "definition" : "parameter",
    "score" : 0.6288842031023242
  }, {
    "definition" : "de La",
    "score" : 0.5329047619047619
  }, {
    "definition" : "limit",
    "score" : 0.4612659484016614
  }, {
    "definition" : "left vertex",
    "score" : 0.451864458892933
  }, {
    "definition" : "Drawing ellipsis",
    "score" : 0.44936883129115235
  } ]
}

Specify your own input