LaTeX to CAS translator
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 S_n(x^2;a,b,c)= {}_3F_2(-n,a+ix,a-ix;a+b,a+c;1).}
... is translated to the CAS output ...
Semantic latex: \npermutations{n}(x^2 ; a , b , c) ={}_3 F_2(- n , a + \iunit x , a - \iunit x ; a + b , a + c ; 1)
Confidence: 0.69628334261011
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \npermutations [\npermutations]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \npermutations [\npermutations]
Tests
Symbolic
Numeric
Maple
Translation: nops(permute(n))*((x)^(2); a , b , c) = [3]*F[2](- n , a + I*x , a - I*x ; a + b , a + c ; 1)
Information
Sub Equations
- nops(permute(n))*((x)^(2); a , b , c) = [3]*F[2](- n , a + I*x , a - I*x ; a + b , a + c ; 1)
Free variables
- a
- b
- c
- n
- x
Symbol info
- Imaginary unit was translated to: I
- Set of permutations; Example: \npermutations{n}
Will be translated to: nops(permute($0)) Required Packages: [combinat,permute] Relevant links to definitions: DLMF: http://dlmf.nist.gov/26.13 Maple: https://en.maplesoft.com/support/help/Maple/view.aspx?path=nops
- Function without DLMF-Definition. We keep it like it is (but delete prefix \ if necessary).
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
- Failed to parse (syntax error): {\displaystyle ^2}}
Description
- Formula
- link
- Gold ID
Complete translation information:
{
"id" : "FORMULA_495bfec17bf57d6a6b200dd125b691c1",
"formula" : "S_n(x^2;a,b,c)= {}_3F_2(-n,a+ix,a-ix;a+b,a+c;1)",
"semanticFormula" : "\\npermutations{n}(x^2 ; a , b , c) ={}_3 F_2(- n , a + \\iunit x , a - \\iunit x ; a + b , a + c ; 1)",
"confidence" : 0.6962833426101079,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) No translation possible for given token: Cannot extract information from feature set: \\npermutations [\\npermutations]"
}
},
"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" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \\npermutations [\\npermutations]"
}
},
"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" : "nops(permute(n))*((x)^(2); a , b , c) = [3]*F[2](- n , a + I*x , a - I*x ; a + b , a + c ; 1)",
"translationInformation" : {
"subEquations" : [ "nops(permute(n))*((x)^(2); a , b , c) = [3]*F[2](- n , a + I*x , a - I*x ; a + b , a + c ; 1)" ],
"freeVariables" : [ "a", "b", "c", "n", "x" ],
"tokenTranslations" : {
"\\iunit" : "Imaginary unit was translated to: I",
"\\npermutations" : "Set of permutations; Example: \\npermutations{n}\nWill be translated to: nops(permute($0))\nRequired Packages: [combinat,permute]\nRelevant links to definitions:\nDLMF: http://dlmf.nist.gov/26.13\nMaple: https://en.maplesoft.com/support/help/Maple/view.aspx?path=nops",
"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" : 1,
"sentence" : 0,
"word" : 8
} ],
"includes" : [ "^2", "^2}" ],
"isPartOf" : [ ],
"definiens" : [ {
"definition" : "Formula",
"score" : 0.7125985104912714
}, {
"definition" : "link",
"score" : 0.6859086196238077
}, {
"definition" : "Gold ID",
"score" : 0.6460746792928004
} ]
}