Re: [Jprogramming] A plane rotation

2016-03-14 Thread Kip Murray
ts is % :2 as in the ori > > ginal points . > > > > > > > > My earlier posted rotheta was m eant to give input and output in (x,y) > > form and didn't work for this example. > > I realize why you de alt with 3 points although t his wa sn't needed. >

Re: [Jprogramming] A plane rotation

2016-03-14 Thread Donald Kelly
n J , also ask s for forgiveness Don - Original Message - From: "Kip Murray" To: programm...@jsoftware.com Sent: Saturday, March 12, 2016 6:37:28 AM Subject: Re: [Jprogramming] A plane rotation What you are doing is very nice. I call mine a point direction ap

Re: [Jprogramming] A plane rotation

2016-03-12 Thread Kip Murray
Don > > - Original Message - > > From: "Kip Murray" > > To: programm...@jsoftware.com > Sent: Wednesday, March 9, 2016 8:26:09 PM > Subject: Re: [Jprogramming] A plane rotation > > Verbs ff , gg , and (gg mab) below represent straight lines. If one of

Re: [Jprogramming] A plane rotation

2016-03-11 Thread Donald Kelly
ip Murray" To: programm...@jsoftware.com Sent: Wednesday, March 9, 2016 8:26:09 PM Subject: Re: [Jprogramming] A plane rotation Verbs ff , gg , and (gg mab) below represent straight lines. If one of them is evaluated at a real number t the result is a point on the represented line. I cal

Re: [Jprogramming] A plane rotation

2016-03-09 Thread Kip Murray
016 at 11:50 PM, Kip Murray >>>> >>>> >>> >>>> > wrote: >>>>> >>>>>> I'm retired with time to "fool around". Finding an old rot90 verb >>>>>> that >>>>>> use

Re: [Jprogramming] A plane rotation

2016-03-09 Thread Don Kelly
o a former math professor! On Tuesday, February 16, 2016, David Lambert > wrote: what's your agenda, are you writing a book? Isn't there a homogeneous coordinate system/transformation lab? On 02/16/2016 06:16 PM, programming-requ...@forums.jsoftware.com wrote: Date: Tue, 16 Feb

Re: [Jprogramming] A plane rotation

2016-02-22 Thread Don Kelly
David Lambert wrote: what's your agenda, are you writing a book? Isn't there a homogeneous coordinate system/transformation lab? On 02/16/2016 06:16 PM, programming-requ...@forums.jsoftware.com wrote: Date: Tue, 16 Feb 2016 15:18:43 -0600 From: Kip Murray To:"programm...@jsoftw

Re: [Jprogramming] A plane rotation

2016-02-20 Thread Kip Murray
>>> New puzzle: find a complex analysis way to do a rotation given its > angle > >> in > >>> radians, examples: > >>> > >>>1r2p1 rottheta 3 4 > >>> _4 3 > >>> > >>>1r4p1 rottheta _1 1 > &

Re: [Jprogramming] A plane rotation

2016-02-19 Thread Louis de Forcrand
but I can't remember what I need to search >>>>>>>> on to find it, and my foggy memory of how to write it is failing me >>> at >>>>>>>> the moment. >>>>>>>> >>>>>>>> Still, this gets you cl

Re: [Jprogramming] A plane rotation

2016-02-18 Thread Raul Miller
gt; >> >>> >> >> >>> Still, this gets you close. >> >> >>> >> >> >>> -- >> >> >>> Raul >> >> >>> >> >> >>> >> >> >>> On Tue, Feb 16, 2016 at 11:50 PM,

Re: [Jprogramming] A plane rotation

2016-02-18 Thread David Lambert
-0600 From: Kip Murray To:"programm...@jsoftware.com" Subject: Re: [Jprogramming] A plane rotation Message-ID: Content-Type: text/plain; charset=UTF-8 In your example, 0 1 is the polynomial coefficients for the straight line being rotated. In usual math notation this is the line

Re: [Jprogramming] A plane rotation

2016-02-18 Thread Kip Murray
t; > thekipmur...@gmail.com > >> > >> >>> > wrote: > >> >>>> I'm retired with time to "fool around". Finding an old rot90 verb > >> that > >> >>>> used multiplication by a

Re: [Jprogramming] A plane rotation

2016-02-18 Thread Raul Miller
; >>>> complex numbers and found one of the solutions that was posted. I >> also >> >>>> learned a lot from the other solutions posted, thanks everyone! >> >>>> >> >>>> New puzzle: find a complex analysis way to do a rotation gi

Re: [Jprogramming] A plane rotation

2016-02-18 Thread Kip Murray
t; >>> in > >>>> radians, examples: > >>>> > >>>>1r2p1 rottheta 3 4 > >>>> _4 3 > >>>> > >>>>1r4p1 rottheta _1 1 > >>>> _1.414213562 0 > >>>> > >>>> --Kip &

Re: [Jprogramming] A plane rotation

2016-02-18 Thread Raul Miller
ven its angle >>> in >>>> radians, examples: >>>> >>>>1r2p1 rottheta 3 4 >>>> _4 3 >>>> >>>>1r4p1 rottheta _1 1 >>>> _1.414213562 0 >>>> >>

Re: [Jprogramming] A plane rotation

2016-02-18 Thread Louis de Forcrand
gt;> _1.414213562 0 >>> >>> --Kip >>> >>> I'm also a former math professor! >>> >>> On Tuesday, February 16, 2016, David Lambert > > wrote: >>> >>>> >>

Re: [Jprogramming] A plane rotation

2016-02-16 Thread Kip Murray
;s your agenda, are you writing a book? Isn't there a homogeneous > >> coordinate system/transformation lab? > >> > >>> > >>> On 02/16/2016 06:16 PM, programming-requ...@forums.jsoftware.com > wrote: > >>> > >>>> Date:

Re: [Jprogramming] A plane rotation

2016-02-16 Thread Raul Miller
nate system/transformation lab? >> >>> >>> On 02/16/2016 06:16 PM, programming-requ...@forums.jsoftware.com wrote: >>> >>>> Date: Tue, 16 Feb 2016 15:18:43 -0600 >>>> From: Kip Murray >>>> To:"programm...@jsoftware.com"

Re: [Jprogramming] A plane rotation

2016-02-16 Thread Kip Murray
, are you writing a book? Isn't there a homogeneous > coordinate system/transformation lab? > >> >> On 02/16/2016 06:16 PM, programming-requ...@forums.jsoftware.com wrote: >> >>> Date: Tue, 16 Feb 2016 15:18:43 -0600 >>> From: Kip Murray >>> T

Re: [Jprogramming] A plane rotation

2016-02-16 Thread David Lambert
what's your agenda, are you writing a book? Isn't there a homogeneous coordinate system/transformation lab? On 02/16/2016 06:16 PM, programming-requ...@forums.jsoftware.com wrote: Date: Tue, 16 Feb 2016 15:18:43 -0600 From: Kip Murray To:"programm...@jsoftware.com" Subje

Re: [Jprogramming] A plane rotation

2016-02-16 Thread Henry Rich
rot =: +.@((* j./)~ *)~ Using Raul's approach, this is rot =: (**)~&.(+.inv) Henry Rich On 2/16/2016 6:09 PM, Raul Miller wrote: Ah, yes, as Michal's implementation shows, there is a more concise approach. Mine becomes: rot=: (% |)~&.(+.inv) Thanks, ---

Re: [Jprogramming] A plane rotation

2016-02-16 Thread Raul Miller
Ah, yes, as Michal's implementation shows, there is a more concise approach. Mine becomes: rot=: (% |)~&.(+.inv) Thanks, -- Raul On Tue, Feb 16, 2016 at 6:07 PM, Raul Miller wrote: > I guess I'd do that like this: > >rot=: (* (% |))~&.(+.inv) > > There might be more concise ways of d

Re: [Jprogramming] A plane rotation

2016-02-16 Thread Raul Miller
I guess I'd do that like this: rot=: (* (% |))~&.(+.inv) There might be more concise ways of doing this though. -- Raul On Tue, Feb 16, 2016 at 4:18 PM, Kip Murray wrote: > Fairly easy: write a verb that rotates a point in the plane by the angle of > a given complex number. For example >

Re: [Jprogramming] A plane rotation

2016-02-16 Thread Michal Wallace
rot =: [: +. (%|)@[ * j./@] On Tue, Feb 16, 2016 at 4:12 PM, Kip Murray wrote: > Another example > > 0j2 rot 3 4 > _4 3 > > This rotates 3 4 by 90 degrees, counterclockwise. > > --Kip > > > On Tuesday, February 16, 2016, Kip Murray wrote: > > > Fairly easy: write a verb that rotates a poin

Re: [Jprogramming] A plane rotation

2016-02-16 Thread Kip Murray
Another example 0j2 rot 3 4 _4 3 This rotates 3 4 by 90 degrees, counterclockwise. --Kip On Tuesday, February 16, 2016, Kip Murray wrote: > Fairly easy: write a verb that rotates a point in the plane by the angle > of a given complex number. For example > > 1j1 rot 1 1 NB. Rotate

[Jprogramming] A plane rotation

2016-02-16 Thread Kip Murray
Fairly easy: write a verb that rotates a point in the plane by the angle of a given complex number. For example 1j1 rot 1 1 NB. Rotate 1 1 counterclockwise 45 degrees 0 1.414213562 Background information: when you multiply two complex numbers the magnitudes are multiplied and the angles a