toSFun

fun <X : SFun<X>> MST.toSFun(): SFun<X>

Maps MST objects to SFun. Unsupported operations throw IllegalStateException.

Detailed mapping is:

  • MST.Numeric -> SConst;

  • MST.Symbolic -> SVar;

  • MST.Unary -> Negative, Sine, Cosine, Tangent, Power, Log;

  • MST.Binary -> Sum, Prod, Power.

Return

a scalar function.

Parameters

<receiver>

the node.

proto

the prototype instance.