Closed ranocha closed 2 years ago
Thus, this implemented fallback conj(x) = x is in accordance with the sensible definition conj(x) = real(x) - (x - real(x))
This is almost true. For 2*IM
, real(2*IM) == 0
. (There's a definition for complex numbers further up in the file)
What about the updated version? I get
julia> using SymEngine
julia> conj(2 * IM)
-2*im
This should also make #196 obsolete
Thanks
Well, thank you for this nice package - great work!
Right now on
master
,real
etc. is not really working properly right now, see #110 andThus, this implemented fallback
conj(x) = x
is in accordance with the sensible definitionfor complex numbers.
I would like to get this merged into a new release of SymEngine.jl to allow further working with
dot
products of symbolic variables (which seem to be mostly real). Extensions to a proper support of complex numbers and further fixes should be discussed in #110 etc.This fixes a problem reported by @ketch (
dot
product involvingSymEngine.Basic
variables representing real numbers).