issue with x=0?
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.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.
Login