Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

WIP: more methods for real, imag - #281

#281
Open
jverzani wants to merge 3 commits into
symengine:mastersymengine/SymEngine.jl:masterfrom
jverzani:issue_273jverzani/SymEngine.jl:issue_273Copy head branch name to clipboard
Open

WIP: more methods for real, imag#281
jverzani wants to merge 3 commits into
symengine:mastersymengine/SymEngine.jl:masterfrom
jverzani:issue_273jverzani/SymEngine.jl:issue_273Copy head branch name to clipboard

Conversation

@jverzani

@jverzani jverzani commented Mar 2, 2025

Copy link
Copy Markdown
Contributor

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.