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
When plotting two-dimensional polynomials, I noticed that when a variable has only 0 coefficients it cannot be evaluated. This can result in an error or unexpected behavior.
To Reproduce
Running the example results in the same evaluation of the second and third polynomial in the array. These are polynomials of degree 1, and they should be oriented differently.
Iterating over a polynomial array of 2 dimensions reduces to 1 dimensions when there the other variable isn't present. In other words: [1, x, y, xy] = [f1(), f2(x), f3(y), f4(x, y)]. You will notice the difference if you change p(x, y) with a more explicit p(q0=x, q1=y).
I agree that isn't the best option, and I will update the default in the next release. For now you can fix your problem by setting the following option at the top of you code:
When plotting two-dimensional polynomials, I noticed that when a variable has only 0 coefficients it cannot be evaluated. This can result in an error or unexpected behavior.
To Reproduce
Running the example results in the same evaluation of the second and third polynomial in the array. These are polynomials of degree 1, and they should be oriented differently.
Expected behavior
The issue can be solved by adding the following.
This feels like a hack though.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: