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 {}_2F_2}

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

Semantic latex: {}_2F_2

Confidence: 0

Mathematica

Translation: Subscript[, 2]*Subscript[F, 2]

Information

Sub Equations

  • Subscript[, 2]*Subscript[F, 2]

Free variables

  • Subscript[F, 2]

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{}_{2}')*Symbol('{F}_{2}')

Information

Sub Equations

  • Symbol('{}_{2}')*Symbol('{F}_{2}')

Free variables

  • Symbol('{F}_{2}')

Tests

Symbolic
Numeric

Maple

Translation: [2]*F[2]

Information

Sub Equations

  • [2]*F[2]

Free variables

  • F[2]

Tests

Symbolic
Numeric

Dependency Graph Information

Description

  • hypergeometric function
  • definition of the Faddeeva function
  • complex error function
  • yield for the indefinite integral

Complete translation information:

{
  "id" : "FORMULA_fd381b9fbdc7e93e54e472a98a3c4869",
  "formula" : "{}_2F_2",
  "semanticFormula" : "{}_2F_2",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[, 2]*Subscript[F, 2]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[, 2]*Subscript[F, 2]" ],
        "freeVariables" : [ "Subscript[F, 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('{}_{2}')*Symbol('{F}_{2}')",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{}_{2}')*Symbol('{F}_{2}')" ],
        "freeVariables" : [ "Symbol('{F}_{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" : "[2]*F[2]",
      "translationInformation" : {
        "subEquations" : [ "[2]*F[2]" ],
        "freeVariables" : [ "F[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" : 4,
    "sentence" : 1,
    "word" : 30
  } ],
  "includes" : [ ],
  "isPartOf" : [ ],
  "definiens" : [ {
    "definition" : "hypergeometric function",
    "score" : 0.722
  }, {
    "definition" : "definition of the Faddeeva function",
    "score" : 0.5500952380952381
  }, {
    "definition" : "complex error function",
    "score" : 0.4364921621676916
  }, {
    "definition" : "yield for the indefinite integral",
    "score" : 0.4364921621676916
  } ]
}

Specify your own input