Skip to content

WIP: more methods for real, imag #281

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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