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_2}
... is translated to the CAS output ...
Semantic latex: {}_1 \AppellF{2}
Confidence: 0.89530287320794
Mathematica
Translation:
Information
Symbol info
- (LaTeX -> Mathematica) Error while translating DLMF/DRMF Macro: Unable to retrieve correct number of arguments for the macro \AppellF [\AppellF]
Tests
Symbolic
Numeric
SymPy
Translation:
Information
Symbol info
- (LaTeX -> SymPy) No translation possible for given token: Cannot extract information from feature set: \AppellF [\AppellF]
Tests
Symbolic
Numeric
Maple
Translation:
Information
Symbol info
- (LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \AppellF [\AppellF]
Tests
Symbolic
Numeric
Dependency Graph Information
Includes
Is part of
Description
- example
- hypergeometric function
- index
- identifier
- hypergeometric function in entry
- appropriate translation
- comma
- argument
- correct argument
- order
Complete translation information:
{
"id" : "FORMULA_49bd6ead2c765ce05ceb04e7d291fd7b",
"formula" : "{}_1F_2",
"semanticFormula" : "{}_1 \\AppellF{2}",
"confidence" : 0.8953028732079359,
"translations" : {
"Mathematica" : {
"translation" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Mathematica) Error while translating DLMF/DRMF Macro: Unable to retrieve correct number of arguments for the macro \\AppellF [\\AppellF]"
}
},
"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: \\AppellF [\\AppellF]"
}
},
"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" : "",
"translationInformation" : {
"tokenTranslations" : {
"Error" : "(LaTeX -> Maple) No translation possible for given token: Cannot extract information from feature set: \\AppellF [\\AppellF]"
}
},
"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" : 7,
"sentence" : 1,
"word" : 18
}, {
"section" : 10,
"sentence" : 8,
"word" : 13
} ],
"includes" : [ "_{1}", "F", "1", "2" ],
"isPartOf" : [ "{}_1F_2 \\left (1,\\tfrac{3}{2}, \\alpha+\\tfrac{3}{2},-\\tfrac{z^2}{4} \\right )" ],
"definiens" : [ {
"definition" : "example",
"score" : 0.6859086196238077
}, {
"definition" : "hypergeometric function",
"score" : 0.6859086196238077
}, {
"definition" : "index",
"score" : 0.6859086196238077
}, {
"definition" : "identifier",
"score" : 0.6460746792928004
}, {
"definition" : "hypergeometric function in entry",
"score" : 0.3687889866817477
}, {
"definition" : "appropriate translation",
"score" : 0.3022651554832766
}, {
"definition" : "comma",
"score" : 0.3022651554832766
}, {
"definition" : "argument",
"score" : 0.25500797572390876
}, {
"definition" : "correct argument",
"score" : 0.25500797572390876
}, {
"definition" : "order",
"score" : 0.25500797572390876
} ]
}