I realize I misposted the definition for d.  Should be:

d =: 4 : 'plot  ;/ |: 2{."1  x points/\. 0,~  |. ($~(4*x)*#) y'

I get the parabola misunderstanding now.

Patterns will tend to cycle, and they produce cool art when they do.  But its 
much less impressive with the original definition.

On another note, I cannot seem to get the plot saved to a file using dyadic 
arguments to plot.  Not everything generates an error but no file is written.

Alternatively, in JHS, is there a way to set the size of the plot image?




----- Original Message -----
From: Devon McCormick <[email protected]>
To: J-programming forum <[email protected]>
Cc: 
Sent: Saturday, April 18, 2015 1:28 PM
Subject: Re: [Jprogramming] an interesting plot toy

But can you draw a "J" shape?

On Sat, Apr 18, 2015 at 12:46 PM, 'Pascal Jasmin' via Programming <
[email protected]> wrote:

> by looking at
> 1 d 1
> 2 d 1
> 4 d 1
> ...
>
> the name I would give this shape is "rounded integer coordinate square
> with x the precision number".
>
>
> ----- Original Message -----
> From: Raul Miller <[email protected]>
> To: Programming forum <[email protected]>
> Cc:
> Sent: Saturday, April 18, 2015 11:35 AM
> Subject: Re: [Jprogramming] an interesting plot toy
>
> On Sat, Apr 18, 2015 at 11:10 AM, 'Pascal Jasmin' via Programming
> <[email protected]> wrote:
> > points =: 1 : '((4*m)|[+{:@]) ,~ (2&{.)@] + (3 : ''|:(,:y|.])(,-)}:y-|i:
> y'' m) {~ (4*m)|[+{:@]'
> ...
> > d =: 4 : 'plot  ;/ |: 2{."1  x points/\. 0,~  |. ($~x*#) y'
> > is there a name for this shape?
> >
> > 90 d 1
>
> That looks to me like a parabola of the sort that you would get
> through curve stitching (though with one axis scaled).
>
>
> Thanks,
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA

----------------------------------------------------------------------
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