I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
Index »

issue with x=0?

apertosa\′s Photo
18 Apr 08, 7:48PM
(1 reply)
issue with x=0?
Hello, looking at the code I see the following:

double getValue(double x) { if (x == 0.0) return 0.0; ....

Now it seems that if the desired X is zero then the returned interpolated value will also be zero. That is not necessarily true, it depends on the input entries. If the x-y curve does not go through zero then that answer will be incorrect. Can someone verify that? I used the calc applet on this page and with my simple example I see that a value of 0.0 always returns 0.0 even when it is clearly wrong.

Please let me know. Thanks, Andrea.

will\′s Photo
19 Apr 08, 10:37AM
I agree. This first line isn't necessary. I've taken it out. The calc aplet will recompile in the next 12hrs.

Thanks for picking this up.
Currently you need to be logged in to leave a message.