A footnote: changing dat as follows gives a much cleaner plot for this case.
dat=: _3 >. 100 <. z 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. > > > > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
