Replies: 4 comments 6 replies
-
|
Oops sorry, wanted to post in Q&A. |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Aahhh I see (more or less): if I call |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
No. The equality becomes true if I call asDouble(P, prec = 1e-15) == I3 # FALSE for entry 1,1
asDouble(P, prec = 1e-15) == I3 # FALSE for entry 1,1
asDouble(P, prec = 1e-15) == I3 # FALSE for entry 1,1
asDouble(P, prec = 1e-15) == I3 # FALSE for entry 1,1
# however the lazy matrix P is equal to the lazy identity matrix
P == lazymat(I3) # TRUE for all entries
asDouble(P, prec = 1e-15) == I3 # TRUE for all entriesI guess this is because |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I really don't understand that: library(lazyNumbers)
x <- 1 - lazynb(7)/10
asDouble(x, prec = 1e-15) == 0.3 # TRUE
asDouble(x, prec = 1e-15) == 0.3 # TRUE
asDouble(x, prec = 1e-15) == 0.3 # TRUE
asDouble(x, prec = 1e-15) == 0.3 # TRUE
asDouble(x, prec = 1e-16) == 0.3 # FALSE
asDouble(x, prec = 1e-15) == 0.3 # FALSE ??? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a lazy number (entry 1,1 of the matrix below) which is equal to the lazy number 1 (I compare these two lazy numbers with
==) but however the double approximation of this number (with relative precision 1e-15) is not equal to 1. How is it possible?Beta Was this translation helpful? Give feedback.
All reactions