Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Jean Giraud  
#1 Posted : 06 July 2019 01:25:51(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
InterBilinearBug.PNG

Bug InterpBilinear.sm (25kb) downloaded 13 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline Davide Carpi  
#2 Posted : 06 July 2019 17:19:46(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
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 (22kb) downloaded 31 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 Wink
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.