Skip to content

Conversation

jverzani
Copy link
Contributor

@jverzani jverzani commented Mar 2, 2025

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 jverzani changed the title more methods for real, imag WIP: more methods for real, imag Mar 17, 2025
@jverzani jverzani mentioned this pull request Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

imag() and reim() gives InexactError(::Symbol, ::Any, ::Any)
1 participant