Re: [Jprogramming] A Dot-Graph Rotator

2023-12-07 Thread 'PMA' via Programming
A slightly different approach.  Rather than search out all alignments and then deduce their degrees of rotation, I mean now to specify as input the degrees for which rotations are to be generated. Example: given a graph of one dot -- 22j10 -- I'd input that value with a rotation choice -- 15 d

Re: [Jprogramming] A Dot-Graph Rotator

2023-12-07 Thread Henry Rich
   22j10 (* ^@:j.@:o.&(%&180)) 15 18.6622j15.3533 Make the middle part a named verb if you like. Henry Rich On 12/7/2023 11:48 AM, 'PMA' via Programming wrote: A slightly different approach.  Rather than search out all alignments and then deduce their degrees of rotation, I mean now to specify

Re: [Jprogramming] A Dot-Graph Rotator

2023-12-07 Thread 'PMA' via Programming
Just right.  I've got it as rotate =: 4 : 0   <. 0.5 + x (* ^@:j.@:o.&(%&180)) y ) Yaaay.  Thanks, Henry! P On 12/7/23 12:20, Henry Rich wrote:    22j10 (* ^@:j.@:o.&(%&180)) 15 18.6622j15.3533 Make the middle part a named verb if you like. Henry Rich On 12/7/2023 11:48 AM, 'PMA' via Prog

Re: [Jprogramming] A Dot-Graph Rotator

2023-12-07 Thread Raul Miller
Or, more simply 22j10*^j.o.15%180 18.6622j15.3533 That said, you could also use J's notation for entering complex numbers using polar coordinates 22j10*1ad15 18.6622j15.3533 I hope this makes sense, -- Raul On Thu, Dec 7, 2023 at 12:20 PM Henry Rich wrote: > > 22j10 (* ^@:j.@:o.&(

Re: [Jprogramming] A Dot-Graph Rotator

2023-12-07 Thread 'PMA' via Programming
Thanks Raul.  Interesting -- I'll look into the polar too On 12/7/23 13:51, Raul Miller wrote: Or, more simply 22j10*^j.o.15%180 18.6622j15.3533 That said, you could also use J's notation for entering complex numbers using polar coordinates 22j10*1ad15 18.6622j15.3533 I hope this mak