autodiff.reverse.Node.__rpow__

Node.__rpow__(other)

Return other to the power of self if other is not a Node.

Parameters
selfNode
otherint, float
Returns
outNode

Examples

>>> 5 ** ad.Node(2)
Node(25)
>>> ad.Node(2) ** 3
Node(8)
>>> ad.Node(2) ** ad.Node.constant(3)
Node(8)