`isinf` and `isnan` doesn't work for `Num` type
dsryu0822 opened this issue · comments
issue
isinf
julia> infty = Num(Inf)
Inf
julia> isinf(infty)
false
julia> infty == Inf
true
julia> infty == Num(Inf)
true
isinf
dosent' work but at least straight comparision by ==
is available.
isnan
julia> nana = Num(NaN)
NaN
julia> isnan(nana)
false
julia> nana == NaN
false
julia> nana == Num(NaN)
false
It's worse than Inf
. I know that NaN == NaN
returns false regardless Num
, but I'm stuck in here because there is no alternative.
Enviroment
- julia v1.10
- Symbolics v5.28
You can use Symbolics.value(x)
to extract the value inside the Num
.
We could overload these two functions though.