Joey,

Here's running your code on my machine:

   JVERSION
Installer: j602a_win.exe
Engine: j602/2008-03-03/16:45
Library: 6.02.049

   (j.15+i.15)":"0 o.1
3.141592653589793              
3.1415926535897931             
3.14159265358979310            
3.141592653589793100           
3.1415926535897931000          
3.14159265358979310000         
3.141592653589793100000        
3.1415926535897931000000       
3.14159265358979310000000      
3.141592653589793100000000     
3.1415926535897931000000000    
3.14159265358979310000000000   
3.141592653589793100000000000  
3.1415926535897931000000000000 
3.14159265358979310000000000000
   
    40":"0 ]2^120+4*i.5   
   1329227995784915900000000000000000000
  21267647932558654000000000000000000000
 340282366920938460000000000000000000000
5444517870735015400000000000000000000000
****************************************

0j25":%:2   
1.4142135623730951000000000

This must be due to the hardware. My processor is AMD Athlon(tm) 64x2 Dual
Core Processor 4200+.

I also tried the Format foreign conjunction and find it won't allow more
than 9 decimal places.

   '0.9'8!:2 [%:2
1.414213562

   '0.10'8!:2 [%:2
|domain error
|   '0.10'    8!:2[%:2

Cheers,

Tom

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Joey K Tuttle
Sent: Sunday, August 09, 2009 13:35
To: General forum
Subject: Re: [Jgeneral] Array Based Languages

At 07:50  -0500 2009/08/09, Tom Arneson wrote:
>My version is:
>    JVERSION
>Installer: j602a_win.exe
>Engine: j602/2008-03-03/16:45
>Library: 6.02.049
>
>At 18:11  -0500 2009/08/08, Tom Arneson wrote:
>  >You can use the Format verb ": to convert the real value to a literal
(or
>>string):
>>
>>     0j16": o. 1
>>3.1415926535897931
>  >    0j20": o. 1
>  >3.14159265358979310000
>>

Tom,

I find your second result very peculiar, I hope Roger will comment on it.

 From several versions of j, I consistently get a different result -

    9!:14''
4.05/2001-05-16/11:30
    0j20": o. 1
3.14159265358979311600

---

    9!:14''
j602/2008-03-03/16:45
    0j20": o. 1
3.14159265358979311600

I am quite curious to see what you might get from the following 2
expressions -

    (j.15+i.15)":"0 o.1
3.141592653589793             
3.1415926535897931            
3.14159265358979312           
3.141592653589793116          
3.1415926535897931160         
3.14159265358979311600        
3.141592653589793115998       
3.1415926535897931159980      
3.14159265358979311599796     
3.141592653589793115997963    
3.1415926535897931159979635   
3.14159265358979311599796347  
3.141592653589793115997963469 
3.1415926535897931159979634685
3.14159265358979311599796346854

    40":"0 ]2^120+4*i.5
    1329227995784915872903807060280344576
   21267647932558653966460912964485513216
  340282366920938463463374607431768211456
5444517870735015415413993718908291383296
****************************************

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to