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

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

Semantic latex: N

Confidence: 0

Mathematica

Translation: N

Information

Sub Equations

  • N

Free variables

  • N

Tests

Symbolic
Numeric

SymPy

Translation: N

Information

Sub Equations

  • N

Free variables

  • N

Tests

Symbolic
Numeric

Maple

Translation: N

Information

Sub Equations

  • N

Free variables

  • N

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • observation that the midpoint
  • point
  • paper strip
  • joint
  • circle with center
  • half
  • paperstrip
  • variation of the paper strip method
  • diagram
  • end
  • ellipse
  • radius
  • center

Complete translation information:

{
  "id" : "FORMULA_8d9c307cb7f3c4a32822a51922d1ceaa",
  "formula" : "N",
  "semanticFormula" : "N",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "N",
      "translationInformation" : {
        "subEquations" : [ "N" ],
        "freeVariables" : [ "N" ]
      },
      "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" : "N",
      "translationInformation" : {
        "subEquations" : [ "N" ],
        "freeVariables" : [ "N" ]
      },
      "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" : "N",
      "translationInformation" : {
        "subEquations" : [ "N" ],
        "freeVariables" : [ "N" ]
      },
      "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" : 24,
    "sentence" : 13,
    "word" : 14
  }, {
    "section" : 24,
    "sentence" : 14,
    "word" : 9
  }, {
    "section" : 24,
    "sentence" : 14,
    "word" : 19
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "observation that the midpoint",
    "score" : 0.722
  }, {
    "definition" : "point",
    "score" : 0.722
  }, {
    "definition" : "paper strip",
    "score" : 0.6954080343007951
  }, {
    "definition" : "joint",
    "score" : 0.6699230544300447
  }, {
    "definition" : "circle with center",
    "score" : 0.6687181434333315
  }, {
    "definition" : "half",
    "score" : 0.6432331635625809
  }, {
    "definition" : "paperstrip",
    "score" : 0.6432331635625809
  }, {
    "definition" : "variation of the paper strip method",
    "score" : 0.6288842031023242
  }, {
    "definition" : "diagram",
    "score" : 0.6033992232315736
  }, {
    "definition" : "end",
    "score" : 0.6033992232315736
  }, {
    "definition" : "ellipse",
    "score" : 0.5816270233429564
  }, {
    "definition" : "radius",
    "score" : 0.5329047619047619
  }, {
    "definition" : "center",
    "score" : 0.5074197820340112
  } ]
}

Specify your own input