| Author |
Comment/Response |
Tapan kumar Baishya
|
05/07/12 10:15am
For[c = -1, c <= 1, c = c + 0.2, Print[c]]
we should get the value of c as - 1, -0.8, -0.6, -0.4, -0.2, 0, .2,.4, .6, .8, 1
Mathematica actually gives us these values as
-1
-0.8`
-0.6000000000000001`
-0.4000000000000001`
-0.20000000000000007`
-5.551115123125783`*^-17
-0.20000000000000007`
0.39999999999999997`
0.6`
0.8`
so on
instead of - 1, -0.8, -0.6, -0.4, -0.2, 0, .2, .4, .6, .8, 1
How to solve this problem?
URL: , |
|