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 \;_1F_1 (a;b;z)=M(a;b;z)}

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

Semantic latex: _1F_1 (a;b;z)=M(a;b;z)

Confidence: 0

Mathematica

Translation: Subscript[$0, 1]*Subscript[F, 1][a ; b ; z] == M[a ; b ; z]

Information

Sub Equations

  • Subscript[$0, 1]*Subscript[F, 1][a ; b ; z] = M[a ; b ; z]

Free variables

  • a
  • b
  • z

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

SymPy

Translation: Symbol('{$0}_{1}')*Symbol('{F}_{1}')(a ; b ; z) == M(a ; b ; z)

Information

Sub Equations

  • Symbol('{$0}_{1}')*Symbol('{F}_{1}')(a ; b ; z) = M(a ; b ; z)

Free variables

  • a
  • b
  • z

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).

Tests

Symbolic
Numeric

Maple

Translation: $0[1]*F[1](a ; b ; z) = M(a ; b ; z)

Information

Sub Equations

  • $0[1]*F[1](a ; b ; z) = M(a ; b ; z)

Free variables

  • a
  • b
  • z

Symbol info

  • Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
  • 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

Complete translation information:

{
  "id" : "FORMULA_5585e07d588e36aee9c0a6167e6f0d8d",
  "formula" : "_1F_1 (a;b;z)=M(a;b;z)",
  "semanticFormula" : "_1F_1 (a;b;z)=M(a;b;z)",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "Subscript[$0, 1]*Subscript[F, 1][a ; b ; z] == M[a ; b ; z]",
      "translationInformation" : {
        "subEquations" : [ "Subscript[$0, 1]*Subscript[F, 1][a ; b ; z] = M[a ; b ; z]" ],
        "freeVariables" : [ "a", "b", "z" ],
        "tokenTranslations" : {
          "M" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "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" : "Symbol('{$0}_{1}')*Symbol('{F}_{1}')(a ; b ; z) == M(a ; b ; z)",
      "translationInformation" : {
        "subEquations" : [ "Symbol('{$0}_{1}')*Symbol('{F}_{1}')(a ; b ; z) = M(a ; b ; z)" ],
        "freeVariables" : [ "a", "b", "z" ],
        "tokenTranslations" : {
          "M" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "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" : "$0[1]*F[1](a ; b ; z) = M(a ; b ; z)",
      "translationInformation" : {
        "subEquations" : [ "$0[1]*F[1](a ; b ; z) = M(a ; b ; z)" ],
        "freeVariables" : [ "a", "b", "z" ],
        "tokenTranslations" : {
          "M" : "Function without DLMF-Definition. We keep it like it is (but delete prefix \\ if necessary).",
          "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" : [ ],
  "includes" : [ "a", "z", "\\;_1F_1 (a;b;z)=M(a;b;z)" ],
  "isPartOf" : [ "\\;_1F_1 (a;b;z)=M(a;b;z)" ],
  "definiens" : [ ]
}

Specify your own input