InterpBilinear Unexplained Bug

InterpBilinear Unexplained Bug - InterpBilinear Unexplained Bug - Messages

#1 Posted: 7/5/2019 7:25:51 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

InterBilinearBug.PNG

Bug InterpBilinear.sm (24 KiB) downloaded 58 time(s).
#2 Posted: 7/6/2019 11:19:46 AM
Davide Carpi

Davide Carpi

1417 likes in 2873 posts.

Group: Moderator

As I've stated in the other thread, there isn't a check on 4th and 5th arguments, that should be scalars.

The implementation is a 1:1 port of a code that was discussed here on the forum some time ago, not based on built-in linterp; here there is your example with the InterpBilinear function exposed in worksheet code (intBil).

InterpBilinear_debug.sm (21 KiB) downloaded 71 time(s).

Seems that a vector argument can fool my binary search function, that doesn't stop the wrong input and ends calculating wrong results.

P.S: I'll fix the plugin as soon as I can
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • New Posts New Posts
  • No New Posts No New Posts