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 f(-ia,ze^{(1/4)\pi i})\,}

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

Semantic latex: f(- \iunit a , ze^{(1 / 4) \cpi \iunit})

Confidence: 0

Mathematica

Translation: f[- I*a , z*(e)^((1/4)*Pi*I)]

Information

Sub Equations

  • f[- I*a , z*(e)^((1/4)*Pi*I)]

Free variables

  • a
  • e
  • z

Symbol info

  • Pi was translated to: Pi
  • Imaginary unit was translated to: I
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

SymPy

Translation: f(- I*a , z*(e)**((1/4)*pi*I))

Information

Sub Equations

  • f(- I*a , z*(e)**((1/4)*pi*I))

Free variables

  • a
  • e
  • z

Symbol info

  • Pi was translated to: pi
  • Imaginary unit was translated to: I
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Maple

Translation: f(- I*a , z*(e)^((1/4)*Pi*I))

Information

Sub Equations

  • f(- I*a , z*(e)^((1/4)*Pi*I))

Free variables

  • a
  • e
  • z

Symbol info

  • Pi was translated to: Pi
  • Imaginary unit was translated to: I
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Dependency Graph Information

Includes

Is part of

Description

  • b
  • solution
  • solution of equation
  • symmetry

Complete translation information:

{
  "id" : "FORMULA_e7992bf1da013b787e335236a43d19ec",
  "formula" : "f(-ia,ze^{(1/4)\\pi i})",
  "semanticFormula" : "f(- \\iunit a , ze^{(1 / 4) \\cpi \\iunit})",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "f[- I*a , z*(e)^((1/4)*Pi*I)]",
      "translationInformation" : {
        "subEquations" : [ "f[- I*a , z*(e)^((1/4)*Pi*I)]" ],
        "freeVariables" : [ "a", "e", "z" ],
        "tokenTranslations" : {
          "\\cpi" : "Pi was translated to: Pi",
          "\\iunit" : "Imaginary unit was translated to: I",
          "f" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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" : "f(- I*a , z*(e)**((1/4)*pi*I))",
      "translationInformation" : {
        "subEquations" : [ "f(- I*a , z*(e)**((1/4)*pi*I))" ],
        "freeVariables" : [ "a", "e", "z" ],
        "tokenTranslations" : {
          "\\cpi" : "Pi was translated to: pi",
          "\\iunit" : "Imaginary unit was translated to: I",
          "f" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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" : "f(- I*a , z*(e)^((1/4)*Pi*I))",
      "translationInformation" : {
        "subEquations" : [ "f(- I*a , z*(e)^((1/4)*Pi*I))" ],
        "freeVariables" : [ "a", "e", "z" ],
        "tokenTranslations" : {
          "\\cpi" : "Pi was translated to: Pi",
          "\\iunit" : "Imaginary unit was translated to: I",
          "f" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary)."
        }
      },
      "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" : 0,
    "sentence" : 3,
    "word" : 28
  } ],
  "includes" : [ "f(a,z)" ],
  "isPartOf" : [ "f(-ia,-ze^{(1/4)\\pi i}), f(ia,-ze^{-(1/4)\\pi i})\\text{ and }f(ia,ze^{-(1/4)\\pi i})" ],
  "definiens" : [ {
    "definition" : "b",
    "score" : 0.8948832601765624
  }, {
    "definition" : "solution",
    "score" : 0.8948832601765624
  }, {
    "definition" : "solution of equation",
    "score" : 0.6601229053380933
  }, {
    "definition" : "symmetry",
    "score" : 0.6601229053380933
  } ]
}

Specify your own input