Hi - did you mean to assign "z" to different things in succession? I.e. z=: real gamma x j./ y z=: imag gamma x j./ y
On Tue, May 8, 2018 at 6:45 AM, Brian Schott <[email protected]> wrote: > Raul, > > It took me a while to understand your post. > At http://code.jsoftware.com/wiki/Plot/Types I found 'density' which > complies with your 'dense'. > At http://code.jsoftware.com/wiki/Studio/Plot#3D_Function_Plot I > discovered > a terrific 'surface' plot that could be readily changed to a 'density' plot > by just changing the one word 'surface' to 'density'. Furthermore by > changing the definition of the verb 'gamma' as I show below, I could very > simply see either a surface or a density plot of the real part of _2&^. > > > gamma=: _2&^ NB. bad naming, but easier to adjust with the > rest of the example > real=: {.@+. > imag=: {:@+. NB. added > x=: steps 0 1 40 NB. altered from the wiki > y=: steps _1 1 40 > z=: real gamma x j./ y > z=: imag gamma x j./ y > dat=: _3 >. 12 <. z > 'surface;noaxes;viewpoint _1 _2.5 1' plot dat > z=: real gamma x j./ y > dat=: _3 >. 12 <. z > 'surface;noaxes;viewpoint _1 _2.5 1' plot dat > > Thanks very much. I still don't "get it" regarding the import/contribution > of _2&^ to Ewart's DF and RF, though. > > > > On Mon, May 7, 2018 at 7:07 PM, Raul Miller <[email protected]> wrote: > > > You'd probably have better luck with [dense] 3d plots. > > > > You've really got four dimensions (2 in, 2 out), but with 3 you only > > have to drop one dimension rather than half of them. > > > > I hope this helps, > > > > -- > > Raul > > > > > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA Quantitative Consultant ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
