You may want to include a parabola, and a function to press the curves, and then the ellipse is no longer needed. parabola =. (j.*:)n press =. (*-.)~+(*+) plot (,: 0.25&press)(<:j.parabola),circle,:hyperbola
>________________________________ > Fra: "William Tanksley, Jr" <[email protected]> >Til: Programming forum <[email protected]> >Sendt: 18:19 tirsdag den 17. september 2013 >Emne: Re: [Jprogramming] Plotting complex lists > > >Bo Jacoby <[email protected]> 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 of when I asked. The trig >functions tend to be way overused; they mask interesting patterns in >the numbers. Skip them and you can often keep everything rational >(well, until you convert into J's complex type, which only allows >floats). > >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 >---------------------------------------------------------------------- >For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
