Skip to content

imag() and reim() gives InexactError(::Symbol, ::Any, ::Any) #273

@xiaodong-hu

Description

@xiaodong-hu

Minimal Example:

using SymEngine

@vars x
real(x) # returns x, instead of keeping `real(x)`
imag(x) # gives `InexactError(::Symbol, ::Any, ::Any)`
reim(x) # gives `InexactError(::Symbol, ::Any, ::Any)`

I notice that by construction SymEngine.Basic <: Number but NOT subtype of Real or Complex. So I really do not understand the logic here: why real(x) simply gives x?

OK, even if the the symbol x is assumed to be real, then why is complex(x) not defined?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions