SymEngine.jl icon indicating copy to clipboard operation
SymEngine.jl copied to clipboard

WIP: more methods for real, imag

Open jverzani opened this issue 8 months ago • 0 comments

Add methods for real, imag.

Doesn't quite fix #273 which raises the point that a symbolic value is treated as real here, but there is no way of creating a Complex symbolic value directly with complex or even Complex, as they expect isa(x,Real) to be true. Perhaps a new method

Base.complex(r::Basic,i::Basic) = r + i*IM

(with some promotion) would be useful.

jverzani avatar Mar 02 '25 22:03 jverzani