Re: [Jprogramming] paint equilateral triangle in plot

2017-09-14 Thread Linda Alvord
I have wondered for a week, how did you insert the two images in your email?  Here's a viewmat image of a painted equilateral triangle for the phone. load 'viewmat' ]x=:i:S=:50 ]M=:|.x<:/(%:3)+(-%:3)*|x (2 3$255 255 255 0 255 90) viewmat M  Linda Sent from AOL Mobile Mail On Wednesday, Septe

Re: [Jprogramming] paint equilateral triangle in plot

2017-09-14 Thread Linda Alvord
I have wondered for a week, how did you insert the two images in your email? Here's a viewmat image of a painted equilateral triangle for the phone. load 'viewmat' ]x=:i:S=:50 ]M=:|.x<:/(%:3)+(-%:3)*|x (2 3$255 255 255 0 255 90) viewmat M  Linda On Wednesday, September 6, 2017 Jimmy Gauvin

Re: [Jprogramming] define rank for a verb defined with 4 : 0

2017-09-14 Thread Rudolf Sykora
On 14 September 2017 at 19:02, 'Pascal Jasmin' via Programming wrote: > myverb =: 4 : 0"_ 0 > ..body.. > ) thanks! Ruda -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] define rank for a verb defined with 4 : 0

2017-09-14 Thread 'Pascal Jasmin' via Programming
yes. myverb =: 4 : 0"_ 0 ..body.. ) would have infinite left and 0 right rank. From: Rudolf Sykora To: programm...@jsoftware.com Sent: Thursday, September 14, 2017 12:46 PM Subject: [Jprogramming] define rank for a verb defined with 4 : 0 Hello, if I define

[Jprogramming] define rank for a verb defined with 4 : 0

2017-09-14 Thread Rudolf Sykora
Hello, if I define a verb using 4 : 0, can I define also its rank straight away? Thanks Ruda -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Puzzling result

2017-09-14 Thread Erling Hellenäs
Here we can see that the identities for Floor and Ceiling of R. H. Lathwell holds for our example.     9!:19 [ 5.68434e_14 9!:18'' 5.68434e_14 25j5":a=: 5729082486784839 % 196 29230012687677.75000 <. a 29230012687678 >.a 29230012687678 (<.a)<:a 1 (>.a)>:a 1 (>.a)=-<.-a 1

Re: [Jprogramming] Puzzling result

2017-09-14 Thread Erling Hellenäs
Hi all ! I programmed Eugenes proposal, and indeed, it gives the same result for the actual problem that our Residue does. There are some other differences. Check me, there might well be some bug somewhere. fr=: 3 : 0 : if. ( x = 0 ) +. ( >.s ) = <. s =. y % x + x = 0 do. y * x = 0 else.