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
I noticed a potential issue when using SymPy in combination with handcalcs. When performing operations involving complex numbers, parentheses are not added around terms during subtraction or multiplication. This could lead to confusion, especially when negative parts of complex numbers are involved, as the expressions might appear mathematically incorrect.
Here’s an example to illustrate:
fromsympyimportIimporthandcalcs.render
%%renderz1=3+I*4z2=-4+I*3z01=z1*z2z02=z1-z2
The rendered output in LaTeX might look like this
Expected Behavior
Parentheses should be automatically placed around subtracted or multiplied terms to clarify the operations:
z01 = (3 + 4i)(-4 + 3i) = -24 - 7i
z02 = 3 + 4i - (-4 + 3i) = 7 + i
Version: 1.9.0
The text was updated successfully, but these errors were encountered:
I noticed a potential issue when using
SymPy
in combination with handcalcs. When performing operations involving complex numbers, parentheses are not added around terms during subtraction or multiplication. This could lead to confusion, especially when negative parts of complex numbers are involved, as the expressions might appear mathematically incorrect.Here’s an example to illustrate:
The rendered output in LaTeX might look like this
Expected Behavior
Parentheses should be automatically placed around subtracted or multiplied terms to clarify the operations:
z01 = (3 + 4i)(-4 + 3i) = -24 - 7i
z02 = 3 + 4i - (-4 + 3i) = 7 + i
Version: 1.9.0
The text was updated successfully, but these errors were encountered: