[Jprogramming] Another Quora Problem

2018-01-29 Thread Andrew Nikitin
Jose Mario Quintana wrote: > but, it is not the only one, > > (X=. (8 + (2 ^ ]) - (2 ^ 2) ^ ])New (^:22) 0.5j_0.5) > 1.24627511j4.53236014 There is way more than that. If you use "phase portrait visualization tool" (e.g. from here http://code.jsoftware.com/wiki/User:Andrew_Nikitin/Phase_port

[Jprogramming] Plot Questions

2017-10-31 Thread Andrew Nikitin
>> > Also in the first example, how can I put a text legend beside the dot at >> > 10,10? I just want a single ASCII number there beside the 10,10 dot. You can convert  plot coordinates to screen coordinates and use textc plot command to place label In the past (J6) I had to do the opposite

[Jprogramming] Complex functions visualization

2017-04-13 Thread Andrew Nikitin
I have updated phase portraits page http://code.jsoftware.com/wiki/User:Andrew_Nikitin/Phase_portraits Now it includes several alternative palettes and a sampler that demonstrates their appearance. -- For information about J for

[Jprogramming] Complex functions visualization

2017-04-11 Thread Andrew Nikitin
I read a book "Visual Complex Functions" by Elias Wegert. In it autor argues for so called phase portraits as a good way to visualize complex function of one complex variable. Each function value is represented by a pixel with a hue (which is an angular quantity) equal to function value's phase an

[Jprogramming] JHS update

2016-10-27 Thread Andrew Nikitin
> Get the latest jhs with a pacman update of the addon. Is there a way to download and install it without pacman? I am behind firewall, so anything pacman-related is a non-starter to me. -- For information about J forums see htt

[Jprogramming] JHS update

2016-10-27 Thread Andrew Nikitin
> Eric Iverson: > JHS update available. > > Fixes bugs in previous version. > > Studio menu has a new entry: watch. > > Studio>app building includes new app6 that shows how to use window ids and > how to get args to the initial jev_get so the page can be customized. How I can get that update? I

[Jprogramming] p. bug

2016-08-30 Thread Andrew Nikitin
p. _48 1 0 0 0 1 crashes j. Tried with 803 and earlier. -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] ascii art

2015-08-13 Thread Andrew Nikitin
quad tree: (2 2$<@])^:4 i.0 0 Sierpinki square: (<@[ (<1;1)} 3 3$<@])^:3~ i.0 0 -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] multiplication bug

2015-07-31 Thread Andrew Nikitin
I tried it in    9!:14 '' j803/2014-10-19-11:11:11 What is the latest and greatest these days? Also, is your result same for |. > Jon Hough jghough at outlook.com  > Fri Jul 31 16:24:33 UTC 2015 > Hmm... I tried it and I got  >   P&|@*/ mul  >  > 346052331

[Jprogramming] multiplication bug

2015-07-31 Thread Andrew Nikitin
i am trying to multiply several integers modulo small prime number here and fail at that.      NB. highest power of prime x that divides !y    pffact=:([: +/ ] <.@% [ ^ 1 + [: i. <.@^.)    P=:9+1e9    pw=.1e9 pffact">~ pr=.p:i.240 NB. first few primes and their powers

[Jprogramming] jviewmat window reuse

2015-01-10 Thread Andrew Nikitin
> Ben Gorte - CITG B.G.H.Gorte at tudelft.nl  > Hi, should this also work in Linux/j64-803/qt? Probably not. I needed it for j602, which uses older wd gui and may not be compatible on the interface level with qt. > The first viewmat responds like ever, but the second does not. The window > does

[Jprogramming] jviewmat window reuse

2015-01-09 Thread Andrew Nikitin
> From: bill lam > You may try create a form with a isigraph and then pass the isigraph to > viewmat. see the isigraph demo. Thanks, that helped. Here is what I ended up doing: NB. hack to "reuse" viewmat window NB. 2015-01-07 16:54:43 created by nsg viewmat_z_=:3 : 0 '' viewmat y :   for_l. c

Re: [Jprogramming] jviewmat window reuse

2015-01-09 Thread Andrew Nikitin
> From: bill lam > You may try create a form with a isigraph and then pass the isigraph to> viewmat. see the isigraph demo.Thanks, that helped. Here is what I ended up doing:NB. hack to "reuse" viewmat windowNB. 2015-01-07 16:54:43 created by nsgviewmat_z_=:3 : 0'' viewmat

[Jprogramming] jviewmat window reuse

2015-01-07 Thread Andrew Nikitin
Is there a way to make a jviewmat to reuse already open window, just like plot does? (this is j60* question, I am not sure if there is a viewmat for for later versions and what it does) -- Fo

[Jprogramming] name completion

2014-05-19 Thread Andrew Nikitin
Joe Bogner wrote: > Here's a hack for enabling tab name completion in jhs: Thanks, this is interesting hack. I had to use     var current = rows[rows.length-1].innerHTML.replace(/ | /g,'').trim(); in my browser, and i still want it to complete partial names in the middle of J sentence, but this

[Jprogramming] name completion

2014-05-16 Thread Andrew Nikitin
In J602 wd environment I use name completion a lot ( http://www.jsoftware.com/jwiki/AndrewNikitin/namecomplete ) and got used to it quite a bit. It uses sm* family of verbs to extract partial name to the left of the cursor, look up matching names in current and path locales and complete it. Thi

[Jprogramming] plot in 602

2014-04-30 Thread Andrew Nikitin
Raul Miller wrote: > I was able to run plot i.21 on both jqt and jhs from j64-801 I tried it with jhs, j32-802. It does not have plot package preinstalled and that machine does not go to the internet, so I cannot use JAL also. How do I install plot for jhs manually?

[Jprogramming] plot in 602

2014-04-29 Thread Andrew Nikitin
> How did it fail? plot i.21 |length error: glcmds | glcmds buf > Will it work for pdf output?It looks like it does. -- For information about J forums see http://www.jsoft

[Jprogramming] plot in 602

2014-04-29 Thread Andrew Nikitin
I am still using 602 and recently tried to run one of my old programs. Apparently it suffered from bit rot, because I could not run it. I traced the failure to the difference between plot i.20 which works, and plot i.21 which fails. Does any of this rings any bells to plot users? Do

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.