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
In the evaluate function for polynomials with a lot of terms it might be more optimal to save the results of the exponent calculations for re-use in e.g. a map: x[exponent] = value
This way it is calculated once and can be used multiple times in O(1).