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 V_1,V_2}

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

Semantic latex: V_1,V_2

Confidence: 0

Mathematica

Translation: Subscript[V, 1], Subscript[V, 2]

Information

Sub Equations

  • Subscript[V, 1], Subscript[V, 2]

Free variables

  • Subscript[V, 1]
  • Subscript[V, 2]

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{V}_{1}'), Symbol('{V}_{2}')

Information

Sub Equations

  • Symbol('{V}_{1}'), Symbol('{V}_{2}')

Free variables

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

Tests

Symbolic
Numeric

Maple

Translation: V[1], V[2]

Information

Sub Equations

  • V[1], V[2]

Free variables

  • V[1]
  • V[2]

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • ellipse at the vertex point
  • center
  • distance
  • major axis
  • radius of curvature
  • vertex
  • center of the rectangle
  • generation of point
  • pencil at the vertex
  • ellipse
  • Metric property
  • co-vertex

Complete translation information:

{
  "id" : "FORMULA_9a1642a3ebd54b45b9392feff6577449",
  "formula" : "V_1,V_2",
  "semanticFormula" : "V_1,V_2",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[V, 1], Subscript[V, 2]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[V, 1], Subscript[V, 2]" ],
        "freeVariables" : [ "Subscript[V, 1]", "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" : "Symbol('{V}_{1}'), Symbol('{V}_{2}')",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{V}_{1}'), Symbol('{V}_{2}')" ],
        "freeVariables" : [ "Symbol('{V}_{1}')", "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" : "V[1], V[2]",
      "translationInformation" : {
        "subEquations" : [ "V[1], V[2]" ],
        "freeVariables" : [ "V[1]", "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" : 1,
    "sentence" : 3,
    "word" : 12
  } ],
  "includes" : [ "V_1,\\, V_2", "V_1", "V", "V_2" ],
  "isPartOf" : [ "V_1,\\, V_2", "V_1,\\, V_2,\\, B,\\, A" ],
  "definiens" : [ {
    "definition" : "ellipse at the vertex point",
    "score" : 0.722
  }, {
    "definition" : "center",
    "score" : 0.6288842031023242
  }, {
    "definition" : "distance",
    "score" : 0.6288842031023242
  }, {
    "definition" : "major axis",
    "score" : 0.6288842031023242
  }, {
    "definition" : "radius of curvature",
    "score" : 0.38922437834188717
  }, {
    "definition" : "vertex",
    "score" : 0.361
  }, {
    "definition" : "center of the rectangle",
    "score" : 0.35159851049127144
  }, {
    "definition" : "generation of point",
    "score" : 0.3249086196238076
  }, {
    "definition" : "pencil at the vertex",
    "score" : 0.3249086196238076
  }, {
    "definition" : "ellipse",
    "score" : 0.2378174995334326
  }, {
    "definition" : "Metric property",
    "score" : 0.1890952380952381
  }, {
    "definition" : "co-vertex",
    "score" : 0.10555930748162859
  } ]
}

Specify your own input