Skip to content
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

more methods for real, imag #281

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

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.

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