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 g}

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

Semantic latex: g

Confidence: 0

Mathematica

Translation: g

Information

Sub Equations

  • g

Free variables

  • g

Tests

Symbolic
Numeric

SymPy

Translation: g

Information

Sub Equations

  • g

Free variables

  • g

Tests

Symbolic
Numeric

Maple

Translation: g

Information

Sub Equations

  • g

Free variables

  • g

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • line
  • tangent
  • ellipse
  • arbitrary line
  • equation of any line
  • point
  • exterior line
  • secant
  • point on an ellipse
  • second point

Complete translation information:

{
  "id" : "FORMULA_b2f5ff47436671b6e533d8dc3614845d",
  "formula" : "g",
  "semanticFormula" : "g",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "g",
      "translationInformation" : {
        "subEquations" : [ "g" ],
        "freeVariables" : [ "g" ]
      },
      "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" : "g",
      "translationInformation" : {
        "subEquations" : [ "g" ],
        "freeVariables" : [ "g" ]
      },
      "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" : "g",
      "translationInformation" : {
        "subEquations" : [ "g" ],
        "freeVariables" : [ "g" ]
      },
      "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" : 7,
    "sentence" : 0,
    "word" : 3
  }, {
    "section" : 7,
    "sentence" : 4,
    "word" : 20
  }, {
    "section" : 7,
    "sentence" : 7,
    "word" : 2
  }, {
    "section" : 7,
    "sentence" : 7,
    "word" : 14
  }, {
    "section" : 7,
    "sentence" : 11,
    "word" : 2
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "line",
    "score" : 0.8869384888466118
  }, {
    "definition" : "tangent",
    "score" : 0.8561797867373182
  }, {
    "definition" : "ellipse",
    "score" : 0.7956229566205695
  }, {
    "definition" : "arbitrary line",
    "score" : 0.722
  }, {
    "definition" : "equation of any line",
    "score" : 0.722
  }, {
    "definition" : "point",
    "score" : 0.6646941956892618
  }, {
    "definition" : "exterior line",
    "score" : 0.6231540443721655
  }, {
    "definition" : "secant",
    "score" : 0.6141752910256434
  }, {
    "definition" : "point on an ellipse",
    "score" : 0.41944440929531046
  }, {
    "definition" : "second point",
    "score" : 0.31920930249007934
  } ]
}

Specify your own input