-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
abs2(x) == conjugate(x)*x #332
Comments
Sure, we could add this. Do you want to make a pull request with a simple test? |
yeah, no problem |
I just checked it in Python and there |
No, there is an issue with SymPy. I checked and have abs2 misdefined. I will make it x*conj(x) instead of abs(x)^2. Thanks. |
Is there any reason to prefer |
Well, good question. I was only thinking about something that worked for
real and complex numbers here. In base julia, the defn was
`real(x)*real(x) + imag(x) * imag(x)` for complex numbers, which is not the
same with this definition in SymPy (surprisingly to me). But maybe that one
makes more sense.
…On Mon, Feb 24, 2020 at 2:21 PM Michele Zaffalon ***@***.***> wrote:
Is there any reason to prefer x*conj(x) to conj(x)*x? Does x commute with
its conjugate?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#332?email_source=notifications&email_token=AADG6TAIKI2HK2VQIFAH3V3REQM5HA5CNFSM4KYN6AHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMZF7TY#issuecomment-590503887>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADG6THSJFEXC3ESJUY4YT3REQM5HANCNFSM4KYN6AHA>
.
--
John Verzani
Department of Mathematics
College of Staten Island, CUNY
[email protected]
|
As far as I understand, sympy simply still has some inconsistencies. |
* bump SpecialFunctions, version number * define abs2 differently; address issue #332
Hi,
I think the title already describes the problem.
Is this outside the scope of the project?
A simple fix/workaround for own code is:
Best,
Benedikt
PS: the same is true when using
conj(x)
The text was updated successfully, but these errors were encountered: