You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Solution:
add method Complex#multiplyRev(double)
This method will be used on second operand in cases where is no multiply method in left operand.
So: 1.2 * a will be transformed to a.multiplyRev(1.2)
This should work for every binary operator.
The text was updated successfully, but these errors were encountered:
Use case - multiply double to Complex:
We can't add method
multiply
to double.Solution:
add method
Complex#multiplyRev(double)
This method will be used on second operand in cases where is no multiply method in left operand.
So:
1.2 * a
will be transformed toa.multiplyRev(1.2)
This should work for every binary operator.
The text was updated successfully, but these errors were encountered: