[Jprogramming] Gustafson's Unums Revisited

2016-08-16 Thread roger stokes
Dear All, I've heard it said that you don't understand a subject unless you can explain it to a computer. With that in mind I've attempted a software implementation of Gustafson's Unums 2.0 ( http://www.johngustafson.net/presentations/Unums2.0.pdf ). If anyone is interested, there is a demo ava

Re: [Jprogramming] bug in ?

2016-08-16 Thread bill lam
Apologize to re-opening this old thread. I tried Joe's patch on the current J source and it seems working. But it also crashed when running g640 in the test suite. I can get a simple repeatable expression that caused crash. ?@:(5e3&$)"0 ] 2 but 1e3 or 2e3 is ok. Any idea? Чт, 17 дек 2015, Joe B

Re: [Jprogramming] Gustafson's Unums Revisited

2016-08-16 Thread Skip Cave
1. Downloaded www.learningj.com/unumslab.zip 1a. Unzipped file to: C:\Users\Skip\j64-804-user\projects\unum 2. Checked to make sure J labs was installed (and up to date) 3. Started a JQT session 4. typed cd 'projects\unum' in JQT session: cd 'projects\unum' |domain error: cd | cd ​' project

Re: [Jprogramming] Gustafson's Unums Revisited

2016-08-16 Thread Vijay Lulla
You can try 1!:44 '~projects\unum' instead of cd in your JQT session. On Tue, Aug 16, 2016 at 3:33 PM, Skip Cave wrote: > 1. Downloaded www.learningj.com/unumslab.zip > 1a. Unzipped file to: C:\Users\Skip\j64-804-user\projects\unum > 2. Checked to make sure J labs was installed (and up to d

Re: [Jprogramming] Gustafson's Unums Revisited

2016-08-16 Thread robert therriault
Or you can open the Lab dialogue in jqt with Help|Studio|Labs... and then use the Browse button in the upper right to go to the unums.ijt file in the unumslab folder. At least that works in the Mac system for jqt. Cheers, bob > On Aug 16, 2016, at 12:58 PM, Vijay Lulla wrote: > > You can try

Re: [Jprogramming] Gustafson's Unums Revisited

2016-08-16 Thread Skip Cave
Robert, Starting the labs, navigating to my unum directory, and then running lab _jlab_ 'unums.ijt' worked! Now I'm able to run Roger's unum lab code. Thanks for the help. It looks like in my JQT, the verb "cd" is set to the foreign 15!:0, which is a DLL call. I have no idea what this is so. Ther

Re: [Jprogramming] Gustafson's Unums Revisited

2016-08-16 Thread Raul Miller
cd is defined as part of the base system. http://www.jsoftware.com/help/user/call_procedure.htm chdir would be 1!:44 if it were defined. http://www.jsoftware.com/help/dictionary/dx001.htm I hope this helps, -- Raul On Tue, Aug 16, 2016 at 4:40 PM, Skip Cave wrote: > Robert, > > Starting th

Re: [Jprogramming] Gustafson's Unums Revisited

2016-08-16 Thread Skip Cave
Well, I got a bit further in the unum lab, but it looks like I still need to set the directory. After a couple of steps in the unum lab I get: load 'utils.ijs' NB. utility functions not found: C:/Users/Skip/j64-804/utils.ijs |file name error: script | 0!:0 y[4!:55<'y' So I still need to poin

Re: [Jprogramming] Gustafson's Unums Revisited

2016-08-16 Thread Raul Miller
use jpath on a '~start\directory' to convert it to something the rest of the system can use. Thanks, -- Raul On Tue, Aug 16, 2016 at 5:23 PM, Skip Cave wrote: > Well, I got a bit further in the unum lab, but it looks like I still need > to set the directory. > > After a couple of steps in the

Re: [Jprogramming] Gustafson's Unums Revisited

2016-08-16 Thread Vijay Lulla
Also it is 1!:44 not 1:!44 . I think 1!:44 'C:/Users/Skip/j64-804/projects/unum' should do the trick. On Tue, Aug 16, 2016 at 5:23 PM, Skip Cave wrote: > Well, I got a bit further in the unum lab, but it looks like I still need > to set the directory. > > After a couple of steps in the unum lab

Re: [Jprogramming] Gustafson's Unums Revisited

2016-08-16 Thread Skip Cave
Vijay, 'C:/Users/Skip/j64-804/projects/unum' worked, except it was really: 'C:/Users/Skip/j64-804-*user*/projects/unum' Now I was able to get all the way down to lesson 6, when I got this error: ] smallpos =: SFJN 0.5 |value error: first | a=.y>: (first@:>)"0 UNUMS So it looks like "first

Re: [Jprogramming] Gustafson's Unums Revisited

2016-08-16 Thread Vijay Lulla
I also had similar problems. I think you'll also have to do load 'general/misc/fndef' to get definitions that are used in the lab. I load this before I do the lab_jlab_ 'unums.ijt' listed in the readme file. HTH, Vijay. On Tue, Aug 16, 2016 at 6:35 PM, Skip Cave wrote: > Vijay, > > 'C:/User

Re: [Jprogramming] Gustafson's Unums Revisited

2016-08-16 Thread bill lam
In the readme, it said ... jconsole doesn't support labs This is incorrect. One can run labs on jconsole and type labrun_jlab_ '' (and up arrow to recall) to advance. Вт, 16 авг 2016, roger stokes написал(а): > Dear All, > > I've heard it said that you don't understand a subject > unless you c