iocane / unbox

GPL licensed J interpreter
Other
37 stars 7 forks source link

Antiderivative fails #17

Open jonghough opened 8 years ago

jonghough commented 8 years ago

This gives a strange result: (^&_2) d. _1

which returns [

The correct result should be something like _1&*@:(^&_1)

Presumably the bug is in the file cd.c.

iocane commented 8 years ago

It looks like something goes wrong in the integer case but the floating point code works as expected: (^&_2.00000000001) d. _1 %&_1.00000000001@(^&_1.00000000001)