Floating point exception.

28 views
Skip to first unread message

Adam

unread,
Nov 4, 2019, 5:50:50 AM11/4/19
to Kona Users
First, thanks for fixing quickly the two bugs I pointed out last week.
Here's another (slightly cut down from http://nsl.com/k/dex.k)

dop_:{
 l:5=4:x;r:5=4:y
 if[~l|r;:+[x]y];if[l&~r;:@[x;_n;_f[;y]]];if[r&~l;:@[y;_n;_f[x]]]
 a:!x;b:!y;i:a@&a _lin b; j: a _dvl i;k:b _dvl i;
 @[@[@[x;i;:;_f'[x i;y i]];j;_f[;0]];k;:;_f[0]'y k]}

a:.+(`a`b;1 2)
b:.+(`b`c;3 4)
dop_[a;b]


Floating point exception (core dumped)


The error seems in part to be due to the +[x]y construct, replacing this with the equivalent +[x;y] makes the code work as expected.

Tom Szczesny

unread,
Nov 4, 2019, 10:14:42 AM11/4/19
to kona...@googlegroups.com
Thanks for spotting this Adam !!
Best
Tom

--
You received this message because you are subscribed to the Google Groups "Kona Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kona-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kona-user/4469fd6a-c322-402c-9283-e96c2ac063a0%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages