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 a - ex}

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

Semantic latex: a - ex

Confidence: 0

Mathematica

Translation: a - e*x

Information

Sub Equations

  • a - e*x

Free variables

  • a
  • e
  • x

Tests

Symbolic
Numeric

SymPy

Translation: a - e*x

Information

Sub Equations

  • a - e*x

Free variables

  • a
  • e
  • x

Tests

Symbolic
Numeric

Maple

Translation: a - e*x

Information

Sub Equations

  • a - e*x

Free variables

  • a
  • e
  • x

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • distance from a point
  • ellipse
  • right focus
  • line
  • auxiliary point
  • axis
  • Bessel
  • center of curvature
  • center of the osculating circle
  • close approximation for the circumference
  • co-vertex
  • diagram
  • easy way
  • expression
  • intersection point of this line
  • James Ivory
  • line segment
  • series
  • Srinivasa Ramanujan
  • substrip of length
  • term
  • vertex
  • point
  • strip

Complete translation information:

{
  "id" : "FORMULA_8bb5c934d0adebe22a6b9d2ab6fdae8a",
  "formula" : "a - ex",
  "semanticFormula" : "a - ex",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "a - e*x",
      "translationInformation" : {
        "subEquations" : [ "a - e*x" ],
        "freeVariables" : [ "a", "e", "x" ]
      },
      "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" : "a - e*x",
      "translationInformation" : {
        "subEquations" : [ "a - e*x" ],
        "freeVariables" : [ "a", "e", "x" ]
      },
      "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" : "a - e*x",
      "translationInformation" : {
        "subEquations" : [ "a - e*x" ],
        "freeVariables" : [ "a", "e", "x" ]
      },
      "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" : 6,
    "word" : 18
  } ],
  "includes" : [ "a", "a - b" ],
  "isPartOf" : [ "a - b", "C_1 = \\left(a - \\tfrac{b^2}{a}, 0\\right),\\, C_3 = \\left(0, b - \\tfrac{a^2}{b}\\right)", "h = (a-b)^2 / (a+b)^2" ],
  "definiens" : [ {
    "definition" : "distance from a point",
    "score" : 0.6687181434333315
  }, {
    "definition" : "ellipse",
    "score" : 0.5816270233429564
  }, {
    "definition" : "right focus",
    "score" : 0.5329047619047619
  }, {
    "definition" : "line",
    "score" : 0.4202504917968326
  }, {
    "definition" : "auxiliary point",
    "score" : 0.3249086196238076
  }, {
    "definition" : "axis",
    "score" : 0.3249086196238076
  }, {
    "definition" : "Bessel",
    "score" : 0.3249086196238076
  }, {
    "definition" : "center of curvature",
    "score" : 0.3249086196238076
  }, {
    "definition" : "center of the osculating circle",
    "score" : 0.3249086196238076
  }, {
    "definition" : "close approximation for the circumference",
    "score" : 0.3249086196238076
  }, {
    "definition" : "co-vertex",
    "score" : 0.3249086196238076
  }, {
    "definition" : "diagram",
    "score" : 0.3249086196238076
  }, {
    "definition" : "easy way",
    "score" : 0.3249086196238076
  }, {
    "definition" : "expression",
    "score" : 0.3249086196238076
  }, {
    "definition" : "intersection point of this line",
    "score" : 0.3249086196238076
  }, {
    "definition" : "James Ivory",
    "score" : 0.3249086196238076
  }, {
    "definition" : "line segment",
    "score" : 0.3249086196238076
  }, {
    "definition" : "series",
    "score" : 0.3249086196238076
  }, {
    "definition" : "Srinivasa Ramanujan",
    "score" : 0.3249086196238076
  }, {
    "definition" : "substrip of length",
    "score" : 0.3249086196238076
  }, {
    "definition" : "term",
    "score" : 0.3249086196238076
  }, {
    "definition" : "vertex",
    "score" : 0.3249086196238076
  }, {
    "definition" : "point",
    "score" : 0.2378174995334326
  }, {
    "definition" : "strip",
    "score" : 0.2378174995334326
  } ]
}

Specify your own input