Re: [Jprogramming] Plotting complex lists

2013-09-25 Thread Don Kelly
t: Re: [Jprogramming] Plotting complex lists Thanks Linda! The 'aspect 1' makes the plot square. Do you know how to make circles circular? Fra: Linda Alvord Til: programm...@jsoftware.com Sendt: 2:48 torsdag den 19. september 2013 Emne: Re: [Jprogramming] Plottin

Re: [Jprogramming] Plotting complex lists

2013-09-24 Thread Andrew Nikitin
>> Verb ratio calculates (max - min of imaginary parts) % (max - min of real >> parts) On a slightly related note: I use pd 'aspect ',(":do_jwplot_ '(YMax-YMin)%(XMax-XMin)'),';show' to force equal ratio on the existing 2d plot. It used to be on a hotkey, but then I moved it to a verb.

Re: [Jprogramming] Plotting complex lists

2013-09-23 Thread km
x27; plot data >>>>> >>>>> appear circular. >>>>> >>>>> --Kip Murray >>>>> >>>>> Sent from my iPad >>>>> >>>>>> On Sep 21, 2013, at 4:08 AM, km wrote: >>>>>> &g

Re: [Jprogramming] Plotting complex lists

2013-09-23 Thread Henry Rich
@forums.jsoftware.com] On Behalf Of Bo Jacoby Sent: Wednesday, September 18, 2013 9:52 PM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Plotting complex lists Thanks Linda! The 'aspect 1' makes the plot square. Do you know how to make circles circular? ___

Re: [Jprogramming] Plotting complex lists

2013-09-23 Thread km
x27;aspect 0.5' plot ((,-)2j1) ,: _1^(%~i:)60 >>>> >>>> and >>>> >>>> 'aspect 1' plot _1^(%~i:)60 >>>> >>>> --Kip Murray >>>> >>>> Sent from my iPad >>>> >>>>&g

Re: [Jprogramming] Plotting complex lists

2013-09-21 Thread km
, so the >>>>> circle is deformed. How do I make the circle circular? >>>>> plot ((,-)2j1),:_1^(%~i:)60 NB. This is different, but not correct >>>>> either. >>>>> >>>>> >>>>>> _

Re: [Jprogramming] Plotting complex lists

2013-09-21 Thread km
t;>> >>>>> Fra: Linda Alvord >>>>> Til: programm...@jsoftware.com >>>>> Sendt: 3:39 lørdag den 21. september 2013 >>>>> Emne: Re: [Jprogramming] Plotting complex lists &

Re: [Jprogramming] Plotting complex lists

2013-09-21 Thread Raul Miller
axes, so the circle is >>> deformed. How do I make the circle circular? >>>plot ((,-)2j1),:_1^(%~i:)60 NB. This is different, but not correct >>> either. >>> >>> >>>> >>>> Fra: Linda Alvord >&

Re: [Jprogramming] Plotting complex lists

2013-09-21 Thread km
w do I make the circle circular? >>plot ((,-)2j1),:_1^(%~i:)60 NB. This is different, but not correct either. >> >> >>> ____ >>> Fra: Linda Alvord >>> Til: programm...@jsoftware.com >>> Sendt: 3:39 lørdag den 21. september 2013 >>> Emne: Re:

Re: [Jprogramming] Plotting complex lists

2013-09-21 Thread Linda Alvord
2013 5:08 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Plotting complex lists Try 'aspect 0.5' plot ((,-)2j1) ,: _1^(%~i:)60 and 'aspect 1' plot _1^(%~i:)60 --Kip Murray Sent from my iPad > On Sep 21, 2013, at 3:15 AM, Bo Jacoby wrote: > >&

Re: [Jprogramming] Plotting complex lists

2013-09-21 Thread Linda Alvord
Kip, -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of km Sent: Saturday, September 21, 2013 5:08 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] Plotting complex lists Try 'aspec

Re: [Jprogramming] Plotting complex lists

2013-09-21 Thread km
Til: programm...@jsoftware.com >> Sendt: 3:39 lørdag den 21. september 2013 >> Emne: Re: [Jprogramming] Plotting complex lists >> >> >> Square isn't so square either. Linda (Yet again, life is a series of >> approximations.) >> >> -Or

Re: [Jprogramming] Plotting complex lists

2013-09-21 Thread Bo Jacoby
ect either. > > Fra: Linda Alvord >Til: programm...@jsoftware.com >Sendt: 3:39 lørdag den 21. september 2013 >Emne: Re: [Jprogramming] Plotting complex lists > > >Square isn't so square either.  Linda  (Yet again, life is a series of >approximat

Re: [Jprogramming] Plotting complex lists

2013-09-20 Thread Linda Alvord
gramm...@jsoftware.com Subject: Re: [Jprogramming] Plotting complex lists Thanks Linda! The 'aspect 1' makes the plot square. Do you know how to make circles circular? > > Fra: Linda Alvord >Til: programm...@jsoftware.com >Sendt: 2:48 torsdag den 1

Re: [Jprogramming] Plotting complex lists

2013-09-18 Thread Bo Jacoby
Thanks Linda! The 'aspect 1' makes the plot square. Do you know how to make circles circular? > > Fra: Linda Alvord >Til: programm...@jsoftware.com >Sendt: 2:48 torsdag den 19. september 2013 >Emne: Re: [Jprogramming] Plotting complex

Re: [Jprogramming] Plotting complex lists

2013-09-18 Thread Linda Alvord
: programm...@jsoftware.com Subject: Re: [Jprogramming] Plotting complex lists One benefit of using complex numbers is that you may forget about trigonometry.    load'plot'    circle=._1^n=.(%~i:)60    ellipse=.(circle*-.a)+(+circle)*a=.0.8    hyperbola=.-:((+%)j.(-%))^n    plot circl

Re: [Jprogramming] Plotting complex lists

2013-09-17 Thread Bo Jacoby
anksley, Jr" >Til: Programming forum >Sendt: 18:19 tirsdag den 17. september 2013 >Emne: Re: [Jprogramming] Plotting complex lists > > >Bo Jacoby wrote: >> One benefit of using complex numbers is that you may forget about >> trigonometry. >>    load&#x

Re: [Jprogramming] Plotting complex lists

2013-09-17 Thread km
On Sep 17, 2013, at 11:19 AM, "William Tanksley, Jr" wrote: > > I definitely don't understand what Kip means when he says y=1/x is not > a hyperbola. It is -- it's the second order polynomial xy=0. The > asymptotes happen to be the axes, but that's exactly what rotation > solves. > > -Wm >

Re: [Jprogramming] Plotting complex lists

2013-09-17 Thread Bo Jacoby
>Til: "programm...@jsoftware.com" >Sendt: 0:40 tirsdag den 17. september 2013 >Emne: Re: [Jprogramming] Plotting complex lists > > >Summary of results.  The strategy of hyperbola below (plotting a complex >table) is not well known.  Henry Rich found it and report

Re: [Jprogramming] Plotting complex lists

2013-09-17 Thread William Tanksley, Jr
Bo Jacoby wrote: > One benefit of using complex numbers is that you may forget about > trigonometry. >load'plot' >circle=._1^n=.(%~i:)60 >ellipse=.(circle*-.a)+(+circle)*a=.0.8 >hyperbola=.-:((+%)j.(-%))^n >plot circle,ellipse,:hyperbola Thanks, Bo; that's what I was thinking

Re: [Jprogramming] Plotting complex lists

2013-09-17 Thread Kip Murray
You can certainly use the standard algebraic formulas y = mx + b, x^2 = 4py, x^2/a^2 + y^2/b^2 = 1, y^2/a^2 - x^2/b^2 = 1 for line, parabola, ellipse/circle, and hyperbola, solving for y and plotting as I do below for the parabola. There is an ingenious way for dealing with y = (+ or minus) bl

Re: [Jprogramming] Plotting complex lists

2013-09-16 Thread William Tanksley, Jr
Is it possible to do these plots using only algebraic functions -- for example, using 1/x and then a rotation to plot the hyperbolae? I know of an algebraic parameterization for the unit circle, but I'm not sure about the ellipse. -Wm On Mon, Sep 16, 2013 at 3:40 PM, km wrote: > Summary of resu

Re: [Jprogramming] Plotting complex lists

2013-09-16 Thread km
Summary of results. The strategy of hyperbola below (plotting a complex table) is not well known. Henry Rich found it and reported it. Bo Jacoby gave the best way to change the sign of the real part of a complex number. Simply do [: + - . NB. Complex Analytic Geometry NB. How to calcula

Re: [Jprogramming] Plotting complex lists

2013-09-16 Thread km
-+5j6 > _5j6 > > > > > > >> >> Fra: Roger Hui >> Til: Programming forum >> Sendt: 7:46 mandag den 16. september 2013 >> Emne: Re: [Jprogramming] Plotting complex lists >> >> >>> For comp

Re: [Jprogramming] Plotting complex lists

2013-09-16 Thread km
Your solution is very nice! I had a much longer sequence of steps. More visibly your steps are 0j_1 * + 0j1 * 3j4 _3j4 that is 0j1 * 3j4 _4j3 + 0j1 * 3j4 _4j_3 0j_1 * + 0j1 * 3j4 _3j4 --Kip Murray Sent from my iPad On Sep 16, 2013, at 12:46 AM, Roger Hui wrote: >

Re: [Jprogramming] Plotting complex lists

2013-09-16 Thread Bo Jacoby
   +-5j6 _5j6    -+5j6 _5j6 > > Fra: Roger Hui >Til: Programming forum >Sendt: 7:46 mandag den 16. september 2013 >Emne: Re: [Jprogramming] Plotting complex lists > > >> For complex analysis purists, it is possible to change

Re: [Jprogramming] Plotting complex lists

2013-09-15 Thread Roger Hui
> For complex analysis purists, it is possible to change the sign of the real part using only multiplication and conjugation -- an exercise left for the reader. ​ +&.j. 3j4 _3j4 -- For information about J forums see http://www.j

Re: [Jprogramming] Plotting complex lists

2013-09-15 Thread km
Henry, we can change the sign of the real part. csr =: [: j./ _1 1 * +. NB. change sign of real part csr 1j2 _1j2 For complex analysis purists, it is possible to change the sign of the real part using only multiplication and conjugation -- an exercise left for the reader. What would hap

Re: [Jprogramming] Plotting complex lists

2013-09-15 Thread Henry Rich
I didn't know about a table of complex numbers either, till I tried it. It seems to recognize each row as a separate dataset, thus avoiding the line between them. Thorough man, that Chris. + for - would work for this hyperbola, but for the other orientation you would need to change sign on t

Re: [Jprogramming] Plotting complex lists

2013-09-15 Thread km
Henry, this is outstanding. I didn't know about plotting a table of complex numbers. Two comments. First, as I specified a hyperbola b for y^2/a^2 - x^2/b^2 = 1 , you need comma tilde (,~) not comma. Second, you could have used + (conjugate) instead of - (negative). Crib

Re: [Jprogramming] Plotting complex lists

2013-09-15 Thread Henry Rich
hyperbola =: [: (,: -) [: j./ ((sinh ,: cosh) _0.4p1 to 0.4p1) * , Henry Rich On 9/15/2013 12:27 AM, km wrote: The next challenge is to write a conjunction hyperbola so that a hyperbola b is a verb that creates complex numbers for both branches of the hyperbola y^2/a^2 - x^2/b^2 = 1 (opens

Re: [Jprogramming] Plotting complex lists

2013-09-14 Thread km
The next challenge is to write a conjunction hyperbola so that a hyperbola b is a verb that creates complex numbers for both branches of the hyperbola y^2/a^2 - x^2/b^2 = 1 (opens up and down not left and right) . The command plot a hyperbola b [ c to d plots the hyperbola. You have t

Re: [Jprogramming] Plotting complex lists

2013-09-14 Thread Henry Rich
Yes, that's better. Henry Rich On 9/14/2013 6:38 PM, km wrote: Very cool, Henry! You can also use ellipse2 =: [: j./ ((cos ,: sin) 0 to 2p1) * , An advantage of complex number plots is they are easy to rotate and translate. Try plot (^&j. _1r4p1) * 2 ellipse 1 NB. rotates -45 d

Re: [Jprogramming] Plotting complex lists

2013-09-14 Thread km
Very cool, Henry! You can also use ellipse2 =: [: j./ ((cos ,: sin) 0 to 2p1) * , An advantage of complex number plots is they are easy to rotate and translate. Try plot (^&j. _1r4p1) * 2 ellipse 1 NB. rotates -45 degrees --Kip Murray Sent from my iPad On Sep 14, 2013, at 12:04 P

Re: [Jprogramming] Plotting complex lists

2013-09-14 Thread Henry Rich
Verb rather than conjunction: ellipse =: [: +.^:_1 ((cos ,. sin) 0 to 2p1) *"1 , If you just want to plot, you can leave the real/imaginary separate: ellipse2 =: ((cos ; sin) 0 to 2p1) *&.> , Henry Rich On 9/13/2013 6:22 PM, km wrote: You can plot a complex list. Try L =: _1j1 0 1j1

[Jprogramming] Plotting complex lists

2013-09-13 Thread km
You can plot a complex list. Try L =: _1j1 0 1j1 and plot L plot 0j1 + L plot 0j1 * L (It is easy to translate and rotate a plot defined by a complex list.) Challenge: devise a conjunction ellipse that produces a complex list for plotting the ellipse 1 = (*: x % a) + (*: y % b) NB. In