toMst
Maps SFun objects to MST. Some unsupported operations like Derivative are bound and converted then. Power operation is limited to constant right-hand side arguments.
Detailed mapping is:
SVar -> MstExtendedField.bindSymbol;
SConst -> MstExtendedField.number;
Sum -> MstExtendedField.add;
Prod -> MstExtendedField.multiply;
Power -> MstExtendedField.power (limited to constant exponents only);
Negative -> MstExtendedField.unaryMinus;
Log -> MstExtendedField.ln (left) / MstExtendedField.ln (right);
Sine -> MstExtendedField.sin;
Cosine -> MstExtendedField.cos;
Tangent -> MstExtendedField.tan;
DProd is vector operation, and it is requested to be evaluated;
SComposition is also requested to be evaluated eagerly;
VSumAll is requested to be evaluated;
Derivative is requested to be evaluated.
Return
A node.