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

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

Semantic latex: m

Confidence: 0

Mathematica

Translation: m

Information

Sub Equations

  • m

Free variables

  • m

Tests

Symbolic
Numeric

SymPy

Translation: m

Information

Sub Equations

  • m

Free variables

  • m

Tests

Symbolic
Numeric

Maple

Translation: m

Information

Sub Equations

  • m

Free variables

  • m

Tests

Symbolic
Numeric

Dependency Graph Information

Is part of

  • Failed to parse (syntax error): {\displaystyle \frac{1 + m_1 m_2}{m_2 - m_1} = \cot\theta\}
  • Failed to parse (syntax error): {\displaystyle \frac{1 + {\color{blue}q}\; m_1 m_2}{m_2 - m_1}\}

Description

  • slope
  • slope of the tangent
  • tangent at a point
  • derivative of the standard representation
  • parametric representation
  • help of trigonometric formula
  • ellipse
  • ellipse point
  • standard representation yield
  • lower half of the ellipse
  • quotient
  • angle
  • point
  • equation of the tangent
  • coordinate
  • order
  • parameter
  • line with equation
  • incomplete elliptic integral of the second kind
  • form
  • angle by a degree
  • following measurement
  • function of the usual angle measure
  • q-analog angle measure
  • measure
  • radian
  • family of ellipsis

Complete translation information:

{
  "id" : "FORMULA_6f8f57715090da2632453988d9a1501b",
  "formula" : "m",
  "semanticFormula" : "m",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "m",
      "translationInformation" : {
        "subEquations" : [ "m" ],
        "freeVariables" : [ "m" ]
      },
      "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" : "m",
      "translationInformation" : {
        "subEquations" : [ "m" ],
        "freeVariables" : [ "m" ]
      },
      "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" : "m",
      "translationInformation" : {
        "subEquations" : [ "m" ],
        "freeVariables" : [ "m" ]
      },
      "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" : 12,
    "sentence" : 0,
    "word" : 8
  }, {
    "section" : 12,
    "sentence" : 3,
    "word" : 1
  } ],
  "includes" : [ ],
  "isPartOf" : [ "\\vec x'(t) = (-a\\sin t,\\, b\\cos t)^\\mathsf{T} \\quad \\rightarrow \\quad m = -\\frac{b}{a}\\cot t\\quad \\rightarrow \\quad \\cot t = -\\frac{ma}{b}", "\\cos t = \\frac{\\cot t}{\\pm\\sqrt{1 + \\cot^2t}} = \\frac{-ma}{\\pm\\sqrt{m^2 a^2 + b^2}}\\ ,\\quad\\quad\\sin t = \\frac{1}{\\pm\\sqrt{1 + \\cot^2t}} = \\frac{b}{\\pm\\sqrt{m^2 a^2 + b^2}}", "\\vec c_\\pm(m) = \\left(-\\frac{ma^2}{\\pm\\sqrt{m^2 a^2 + b^2}},\\;\\frac{b^2}{\\pm\\sqrt{m^2a^2 + b^2}}\\right),\\, m \\in \\R", "\\vec c_\\pm(m)", "y = mx \\pm\\sqrt{m^2 a^2 + b^2}\\;", "y = m_1x + d_1,\\ y = m_2x + d_2,\\ m_1 \\ne m_2", "\\frac{1 + m_1 m_2}{m_2 - m_1} = \\cot\\theta\\", "\\frac{1 + {\\color{blue}q}\\; m_1 m_2}{m_2 - m_1}\\", "E(z \\mid m)", "m=k^{2}" ],
  "definiens" : [ {
    "definition" : "slope",
    "score" : 0.722
  }, {
    "definition" : "slope of the tangent",
    "score" : 0.722
  }, {
    "definition" : "tangent at a point",
    "score" : 0.6954080343007951
  }, {
    "definition" : "derivative of the standard representation",
    "score" : 0.6687181434333315
  }, {
    "definition" : "parametric representation",
    "score" : 0.6687181434333315
  }, {
    "definition" : "help of trigonometric formula",
    "score" : 0.6432331635625809
  }, {
    "definition" : "ellipse",
    "score" : 0.6288842031023242
  }, {
    "definition" : "ellipse point",
    "score" : 0.56547515228527
  }, {
    "definition" : "standard representation yield",
    "score" : 0.4904718574912855
  }, {
    "definition" : "lower half of the ellipse",
    "score" : 0.4569794411975623
  }, {
    "definition" : "quotient",
    "score" : 0.4530375991008068
  }, {
    "definition" : "angle",
    "score" : 0.41115056115555504
  }, {
    "definition" : "point",
    "score" : 0.4111329742008307
  }, {
    "definition" : "equation of the tangent",
    "score" : 0.3750415938246384
  }, {
    "definition" : "coordinate",
    "score" : 0.3730866057293667
  }, {
    "definition" : "order",
    "score" : 0.37131662082454775
  }, {
    "definition" : "parameter",
    "score" : 0.361
  }, {
    "definition" : "line with equation",
    "score" : 0.3605208759261228
  }, {
    "definition" : "incomplete elliptic integral of the second kind",
    "score" : 0.35159851049127144
  }, {
    "definition" : "form",
    "score" : 0.2879504737342633
  }, {
    "definition" : "angle by a degree",
    "score" : 0.2378174995334326
  }, {
    "definition" : "following measurement",
    "score" : 0.2378174995334326
  }, {
    "definition" : "function of the usual angle measure",
    "score" : 0.2378174995334326
  }, {
    "definition" : "q-analog angle measure",
    "score" : 0.1890952380952381
  }, {
    "definition" : "measure",
    "score" : 0.14390742558144942
  }, {
    "definition" : "radian",
    "score" : 0.14390742558144942
  }, {
    "definition" : "family of ellipsis",
    "score" : 0.10555930748162859
  } ]
}

Specify your own input