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 c \,F_3(a_1,a_2,b_1,b_2,c; x,y) - c \,F_3(a_1+1,a_2,b_1,b_2,c; x,y) + b_1 x \,F_3(a_1+1,a_2,b_1+1,b_2,c+1; x,y) = 0 ~, }

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

Semantic latex: c F_3(a_1,a_2,b_1,b_2,c; x,y) - c F_3(a_1+1,a_2,b_1,b_2,c; x,y) + b_1 x F_3(a_1+1,a_2,b_1+1,b_2,c+1; x,y) = 0 ~

Confidence: 0

Mathematica

Translation: c*Subscript[F, 3][Subscript[a, 1], Subscript[a, 2], Subscript[b, 1], Subscript[b, 2], c ; x , y]- c*Subscript[F, 3][Subscript[a, 1]+ 1 , Subscript[a, 2], Subscript[b, 1], Subscript[b, 2], c ; x , y]+ Subscript[b, 1]*x*Subscript[F, 3][Subscript[a, 1]+ 1 , Subscript[a, 2], Subscript[b, 1]+ 1 , Subscript[b, 2], c + 1 ; x , y] == 0

Information

Sub Equations

  • c*Subscript[F, 3][Subscript[a, 1], Subscript[a, 2], Subscript[b, 1], Subscript[b, 2], c ; x , y]- c*Subscript[F, 3][Subscript[a, 1]+ 1 , Subscript[a, 2], Subscript[b, 1], Subscript[b, 2], c ; x , y]+ Subscript[b, 1]*x*Subscript[F, 3][Subscript[a, 1]+ 1 , Subscript[a, 2], Subscript[b, 1]+ 1 , Subscript[b, 2], c + 1 ; x , y] = 0

Free variables

  • Subscript[a, 1]
  • Subscript[a, 2]
  • Subscript[b, 1]
  • Subscript[b, 2]
  • c
  • x
  • y

Symbol info

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

Tests

Symbolic
Numeric

SymPy

Translation: c*Symbol('{F}_{3}')(Symbol('{a}_{1}'), Symbol('{a}_{2}'), Symbol('{b}_{1}'), Symbol('{b}_{2}'), c ; x , y)- c*Symbol('{F}_{3}')(Symbol('{a}_{1}')+ 1 , Symbol('{a}_{2}'), Symbol('{b}_{1}'), Symbol('{b}_{2}'), c ; x , y)+ Symbol('{b}_{1}')*x*Symbol('{F}_{3}')(Symbol('{a}_{1}')+ 1 , Symbol('{a}_{2}'), Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c + 1 ; x , y) == 0

Information

Sub Equations

  • c*Symbol('{F}_{3}')(Symbol('{a}_{1}'), Symbol('{a}_{2}'), Symbol('{b}_{1}'), Symbol('{b}_{2}'), c ; x , y)- c*Symbol('{F}_{3}')(Symbol('{a}_{1}')+ 1 , Symbol('{a}_{2}'), Symbol('{b}_{1}'), Symbol('{b}_{2}'), c ; x , y)+ Symbol('{b}_{1}')*x*Symbol('{F}_{3}')(Symbol('{a}_{1}')+ 1 , Symbol('{a}_{2}'), Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c + 1 ; x , y) = 0

Free variables

  • Symbol('{a}_{1}')
  • Symbol('{a}_{2}')
  • Symbol('{b}_{1}')
  • Symbol('{b}_{2}')
  • c
  • x
  • y

Symbol info

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

Tests

Symbolic
Numeric

Maple

Translation: c*F[3](a[1], a[2], b[1], b[2], c ; x , y)- c*F[3](a[1]+ 1 , a[2], b[1], b[2], c ; x , y)+ b[1]*x*F[3](a[1]+ 1 , a[2], b[1]+ 1 , b[2], c + 1 ; x , y) = 0

Information

Sub Equations

  • c*F[3](a[1], a[2], b[1], b[2], c ; x , y)- c*F[3](a[1]+ 1 , a[2], b[1], b[2], c ; x , y)+ b[1]*x*F[3](a[1]+ 1 , a[2], b[1]+ 1 , b[2], c + 1 ; x , y) = 0

Free variables

  • a[1]
  • a[2]
  • b[1]
  • b[2]
  • c
  • x
  • y

Symbol info

  • 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_7ffb519e806ca125685bda2c3bc3d8c3",
  "formula" : "c F_3(a_1,a_2,b_1,b_2,c; x,y) - c F_3(a_1+1,a_2,b_1,b_2,c; x,y) + b_1 x F_3(a_1+1,a_2,b_1+1,b_2,c+1; x,y) = 0 ~",
  "semanticFormula" : "c F_3(a_1,a_2,b_1,b_2,c; x,y) - c F_3(a_1+1,a_2,b_1,b_2,c; x,y) + b_1 x F_3(a_1+1,a_2,b_1+1,b_2,c+1; x,y) = 0 ~",
  "confidence" : 0.0,
  "translations" : {
    "Mathematica" : {
      "translation" : "c*Subscript[F, 3][Subscript[a, 1], Subscript[a, 2], Subscript[b, 1], Subscript[b, 2], c ; x , y]- c*Subscript[F, 3][Subscript[a, 1]+ 1 , Subscript[a, 2], Subscript[b, 1], Subscript[b, 2], c ; x , y]+ Subscript[b, 1]*x*Subscript[F, 3][Subscript[a, 1]+ 1 , Subscript[a, 2], Subscript[b, 1]+ 1 , Subscript[b, 2], c + 1 ; x , y] == 0",
      "translationInformation" : {
        "subEquations" : [ "c*Subscript[F, 3][Subscript[a, 1], Subscript[a, 2], Subscript[b, 1], Subscript[b, 2], c ; x , y]- c*Subscript[F, 3][Subscript[a, 1]+ 1 , Subscript[a, 2], Subscript[b, 1], Subscript[b, 2], c ; x , y]+ Subscript[b, 1]*x*Subscript[F, 3][Subscript[a, 1]+ 1 , Subscript[a, 2], Subscript[b, 1]+ 1 , Subscript[b, 2], c + 1 ; x , y] = 0" ],
        "freeVariables" : [ "Subscript[a, 1]", "Subscript[a, 2]", "Subscript[b, 1]", "Subscript[b, 2]", "c", "x", "y" ],
        "tokenTranslations" : {
          "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" : "c*Symbol('{F}_{3}')(Symbol('{a}_{1}'), Symbol('{a}_{2}'), Symbol('{b}_{1}'), Symbol('{b}_{2}'), c ; x , y)- c*Symbol('{F}_{3}')(Symbol('{a}_{1}')+ 1 , Symbol('{a}_{2}'), Symbol('{b}_{1}'), Symbol('{b}_{2}'), c ; x , y)+ Symbol('{b}_{1}')*x*Symbol('{F}_{3}')(Symbol('{a}_{1}')+ 1 , Symbol('{a}_{2}'), Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c + 1 ; x , y) == 0",
      "translationInformation" : {
        "subEquations" : [ "c*Symbol('{F}_{3}')(Symbol('{a}_{1}'), Symbol('{a}_{2}'), Symbol('{b}_{1}'), Symbol('{b}_{2}'), c ; x , y)- c*Symbol('{F}_{3}')(Symbol('{a}_{1}')+ 1 , Symbol('{a}_{2}'), Symbol('{b}_{1}'), Symbol('{b}_{2}'), c ; x , y)+ Symbol('{b}_{1}')*x*Symbol('{F}_{3}')(Symbol('{a}_{1}')+ 1 , Symbol('{a}_{2}'), Symbol('{b}_{1}')+ 1 , Symbol('{b}_{2}'), c + 1 ; x , y) = 0" ],
        "freeVariables" : [ "Symbol('{a}_{1}')", "Symbol('{a}_{2}')", "Symbol('{b}_{1}')", "Symbol('{b}_{2}')", "c", "x", "y" ],
        "tokenTranslations" : {
          "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" : "c*F[3](a[1], a[2], b[1], b[2], c ; x , y)- c*F[3](a[1]+ 1 , a[2], b[1], b[2], c ; x , y)+ b[1]*x*F[3](a[1]+ 1 , a[2], b[1]+ 1 , b[2], c + 1 ; x , y) = 0",
      "translationInformation" : {
        "subEquations" : [ "c*F[3](a[1], a[2], b[1], b[2], c ; x , y)- c*F[3](a[1]+ 1 , a[2], b[1], b[2], c ; x , y)+ b[1]*x*F[3](a[1]+ 1 , a[2], b[1]+ 1 , b[2], c + 1 ; x , y) = 0" ],
        "freeVariables" : [ "a[1]", "a[2]", "b[1]", "b[2]", "c", "x", "y" ],
        "tokenTranslations" : {
          "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" : [ "y", "c \\,F_3(a_1,a_2,b_1,b_2,c; x,y) - c \\,F_3(a_1+1,a_2,b_1,b_2,c; x,y) + b_1 x \\,F_3(a_1+1,a_2,b_1+1,b_2,c+1; x,y) = 0", "F_{3}", "F", "x" ],
  "isPartOf" : [ "c \\,F_3(a_1,a_2,b_1,b_2,c; x,y) - c \\,F_3(a_1+1,a_2,b_1,b_2,c; x,y) + b_1 x \\,F_3(a_1+1,a_2,b_1+1,b_2,c+1; x,y) = 0" ],
  "definiens" : [ ]
}

Specify your own input