I'm sure I just made a silly mistake somewhere, I just don't know where. Observe the highlighted piece of code:
It doesn't do much, take an initial x value, do stuff with it, decrement by deltaX until it hits limit, abort.
The problem is, x > limit returns true when x = limit (as in this example, x = limit = 0.7)
screenshot
excerpted for your convenience
sample output of the program
It doesn't do much, take an initial x value, do stuff with it, decrement by deltaX until it hits limit, abort.
The problem is, x > limit returns true when x = limit (as in this example, x = limit = 0.7)
Code:
fprintf("x = %.1f, limit = %.1f, x > limit : %d\n", (x), limit, (x>limit));Code:
x = 0.7, limit = 0.7, x > limit : 1

![[Image: octave_weird.jpg]](https://lh4.googleusercontent.com/-cYrFjPU5-00/TtVrwdBBglI/AAAAAAAAAKM/-ARbHtZo1YM/s912/octave_weird.jpg)