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

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

Semantic latex: AV_2

Confidence: 0

Mathematica

Translation: A*Subscript[V, 2]

Information

Sub Equations

  • A*Subscript[V, 2]

Free variables

  • A
  • Subscript[V, 2]

Tests

Symbolic
Numeric

SymPy

Translation: A*Symbol('{V}_{2}')

Information

Sub Equations

  • A*Symbol('{V}_{2}')

Free variables

  • A
  • Symbol('{V}_{2}')

Tests

Symbolic
Numeric

Maple

Translation: A*V[2]

Information

Sub Equations

  • A*V[2]

Free variables

  • A
  • V[2]

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • division
  • direction onto the line segment
  • equal spaced line segment
  • n
  • side
  • diagram
  • rectangle

Complete translation information:

{
  "id" : "FORMULA_928a66a334f4cb5c1489021a770e56d4",
  "formula" : "AV_2",
  "semanticFormula" : "AV_2",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "A*Subscript[V, 2]",
      "translationInformation" : {
        "subEquations" : [ "A*Subscript[V, 2]" ],
        "freeVariables" : [ "A", "Subscript[V, 2]" ]
      },
      "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*Symbol('{V}_{2}')",
      "translationInformation" : {
        "subEquations" : [ "A*Symbol('{V}_{2}')" ],
        "freeVariables" : [ "A", "Symbol('{V}_{2}')" ]
      },
      "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*V[2]",
      "translationInformation" : {
        "subEquations" : [ "A*V[2]" ],
        "freeVariables" : [ "A", "V[2]" ]
      },
      "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" : 26,
    "sentence" : 4,
    "word" : 23
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "division",
    "score" : 0.7828725372816522
  }, {
    "definition" : "direction onto the line segment",
    "score" : 0.6954080343007951
  }, {
    "definition" : "equal spaced line segment",
    "score" : 0.5816270233429564
  }, {
    "definition" : "n",
    "score" : 0.5816270233429564
  }, {
    "definition" : "side",
    "score" : 0.5816270233429564
  }, {
    "definition" : "diagram",
    "score" : 0.5329047619047619
  }, {
    "definition" : "rectangle",
    "score" : 0.5329047619047619
  } ]
}

Specify your own input