-
Notifications
You must be signed in to change notification settings - Fork 157
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
Small inconsistencies #693
Comments
Lines 1 to 3 in da72404
|
Base.convert(::Type{Num}, x::Number) = Num(x) |
When some functions, such as lu
, call one
internally, the result is just a 64-bit integer Int64
1
.
using Symbolics
@variables x::Float64
x_one = one(x) # Int64 1
t = typeof(x) # Num
xt_one = one(t) # Int64 1
y = Num(3.4)
y_one = one(y) # Int64 1
Fix
We can maybe add a parametric type to Num{T}
, but this doesn't seem easy.
|
The using Symbolics
F = [0.0 1.0; -1.0-10.0*cos(t) -24.0-19.0*sin(t)]
inv(F) outputs mixed floats and integers: 2×2 Matrix{Num}:
(-24.0 - 19.0sin(t)) / (1.0 + 10.0cos(t)) -1.0 / (1.0 + 10.0cos(t))
1 0.0 |
Working with Symbolics.jl, I came accross to the following small inconsistency (see the
true
value in the (1,2) element):Also, checking the result produces a (1,2) element of apparently different type from the rest:
Also
generate entries of different nature.
I wonder if this is the expected behaviour.
The text was updated successfully, but these errors were encountered: