-
Notifications
You must be signed in to change notification settings - Fork 37
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
sym(x, 'r') heuristics poor for small x < 1e-17 #1272
Comments
That does seem poor... But you are ignoring this warning:
Compare the difference between these:
|
I'm not sure if this can be improved but the root of this problem is the following. I've hidden most of the warnings, but I re-iterate that converting doubles to sym is a bad idea, that's what the warning is telling us.
|
This 9223372036854775807 number is 2^63 - 1: presumably a |
Using
So I tracked this to
observations
decisions to be made
|
Whenever there's an expression that looks exactly like this and with such large numbers as coefficients:
which is obviously wrong.. and the problem persists whenever an expression is evaluated, for example:
And even when sending the whole expression to the built in function 'eval' and started debugging a little, the expression keeps ok until it is evaluated at the function fh, as appearing in the screenshot attached
And.., the same code works on matlab well..
I tried the same thing using octave v:7.1.1 and v:9.0.0 on a PC with Linux Ubuntu
The text was updated successfully, but these errors were encountered: