This is a low-level function for evaluating yacas expression represented as string.

yacas_evaluate(expr)

Arguments

expr

Yacas expression

Value

Result of evaluating expr by yacas in OpenMath format and side-effects of the evaluation

Examples

yacas_evaluate("D(x)Sin(x^2)")
#> [1] "<OMOBJ>\n  <OMA>\n    <OMS cd=\"arith1\" name=\"times\"/>\n    <OMI>2</OMI>\n    <OMA>\n      <OMS cd=\"arith1\" name=\"times\"/>\n      <OMV name=\"x\"/>\n      <OMA>\n        <OMS cd=\"transc1\" name=\"cos\"/>\n        <OMA>\n          <OMS cd=\"arith1\" name=\"power\"/>\n          <OMV name=\"x\"/>\n          <OMI>2</OMI>\n        </OMA>\n      </OMA>\n    </OMA>\n  </OMA>\n</OMOBJ>\n"
#> [2] ""