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

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

Semantic latex: w

Confidence: 0

Mathematica

Translation: w

Information

Sub Equations

  • w

Free variables

  • w

Tests

Symbolic
Numeric

SymPy

Translation: w

Information

Sub Equations

  • w

Free variables

  • w

Tests

Symbolic
Numeric

Maple

Translation: w

Information

Sub Equations

  • w

Free variables

  • w

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

  • Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left(x - f_1\right)^2 + \left(y - f_2\right)^2 = e^2 \frac{\left(ux + vy + w\right)^2}{u^2 + v^2}\}

Description

  • line
  • tangent line at point
  • bisector of the supplementary angle
  • ellipse
  • angle between the line
  • check that any point
  • order
  • point
  • tangent at point
  • directrix
  • equation
  • General ellipse If the focus

Complete translation information:

{
  "id" : "FORMULA_f1290186a5d0b1ceab27f4e77c0c5d68",
  "formula" : "w",
  "semanticFormula" : "w",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "w",
      "translationInformation" : {
        "subEquations" : [ "w" ],
        "freeVariables" : [ "w" ]
      },
      "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" : "w",
      "translationInformation" : {
        "subEquations" : [ "w" ],
        "freeVariables" : [ "w" ]
      },
      "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" : "w",
      "translationInformation" : {
        "subEquations" : [ "w" ],
        "freeVariables" : [ "w" ]
      },
      "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" : 17,
    "sentence" : 3,
    "word" : 2
  }, {
    "section" : 17,
    "sentence" : 4,
    "word" : 5
  }, {
    "section" : 17,
    "sentence" : 4,
    "word" : 22
  }, {
    "section" : 17,
    "sentence" : 5,
    "word" : 1
  } ],
  "includes" : [ ],
  "isPartOf" : [ "\\left(x - f_1\\right)^2 + \\left(y - f_2\\right)^2 = e^2 \\frac{\\left(ux + vy + w\\right)^2}{u^2 + v^2}\\", "ux + vy + w = 0" ],
  "definiens" : [ {
    "definition" : "line",
    "score" : 0.8869384888466118
  }, {
    "definition" : "tangent line at point",
    "score" : 0.722
  }, {
    "definition" : "bisector of the supplementary angle",
    "score" : 0.6954080343007951
  }, {
    "definition" : "ellipse",
    "score" : 0.6893062844297376
  }, {
    "definition" : "angle between the line",
    "score" : 0.6687181434333315
  }, {
    "definition" : "check that any point",
    "score" : 0.6033992232315736
  }, {
    "definition" : "order",
    "score" : 0.6033992232315736
  }, {
    "definition" : "point",
    "score" : 0.5775629775816605
  }, {
    "definition" : "tangent at point",
    "score" : 0.5775629775816605
  }, {
    "definition" : "directrix",
    "score" : 0.38248809523809524
  }, {
    "definition" : "equation",
    "score" : 0.38248809523809524
  }, {
    "definition" : "General ellipse If the focus",
    "score" : 0.3463967148619029
  } ]
}

Specify your own input