Judging from the following the problem would appear to affect floating point numbers and not than integers. a=.100+i.5 b=.200+i.5 Q=.%/ a((Q f.)/.@:,:)b NB. integer 100 0.505 0.507463 0.509901 0.512315 204 a((Q )/.@:,:)b 100 0.505 0.507463 0.509901 0.512315 204
a((Q f.)/.@:,:)b +0.1 NB. floating point 100 1.98119 1.97157 1.96214 1.95288 204.1 a((Q )/.@:,:)b +0.1 100 0.504748 0.50721 0.509649 0.512063 204.1 What could cause such strange behaviour? David On 6/8/07, Mike Day <[EMAIL PROTECTED]> wrote:
That's why I moved to Jbeta.... Joey K Tuttle wrote: > Has anyone pointed out that this is a 6.01 bug?? > > version '' > j504/2005-03-16/15:30 > Running in: Linux > Linux version 2.4.20-28.8 ([EMAIL PROTECTED]) (gcc > version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)) #1 Thu Dec 18 12:53:39 > EST 2003 > > </.t =. 2 8 [EMAIL PROTECTED] 10 > +-+---+---+---+---+---+---+---+-+ > |6|5 0|9 4|2 6|4 8|9 3|0 8|7 1|2| > +-+---+---+---+---+---+---+---+-+ > -//.t > 6 5 5 _4 _4 6 _8 6 2 > -~//.t > 6 _5 _5 4 4 _6 8 _6 2 > > > > version '' > Binary: j601binc_darwin_powerpc > Library: j601libc > Help: j601hlpc > Engine: j601/2006-11-17/17:05 > ProductName: Mac OS X > ProductVersion: 10.4.9 > BuildVersion: 8P135 > java version "1.5.0_07" Java(TM) 2 Runtime Environment, Standard > Edition (build 1.5.0_07-164) Java HotSpot(TM) Client VM (build > 1.5.0_07-87, mixed mode, sharing) > > </. t=. 2 8 [EMAIL PROTECTED] 10 > +-+---+---+---+---+---+---+---+-+ > |6|5 0|9 4|2 6|4 8|9 3|0 8|7 1|2| > +-+---+---+---+---+---+---+---+-+ > -//.t > 6 _5 _5 4 4 _6 8 _6 2 > -~//.t > 6 _5 _5 4 4 _6 8 _6 2 > > > foo =: - > foo//.t > 6 5 5 _4 _4 6 _8 6 2 > foo~//.t > 6 _5 _5 4 4 _6 8 _6 2 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
