Hello
I have been trying to get a handle on the 'for.' control command, using a
little program taken from a
Pascal book, of which I have written a script as follows:
load 'print'
humbug=: 3 : 0
for. >: i.3 do.
print 'We wish you a Merry Christmas'
end.
print 'And a Happy New Year!'
)
Here are
On page 7, in section 1.5 in "Fractals,Visualization and J", when I attempt to
load the script "view_m.ijs", I get the error message "|file name error:
script: |0!:0 y[4!:55<'y'". According to "J for C Programmers", a file name
error means that "You specified a file name that is invalid, or at
Thank you for responding so quickly, Marshall. First of all, does the '~'
insert the path into the main j602 directory? By that, I mean is it equivalent
to \j602\addons\...? If this is the case, I tried everything I could think of
with the same result. What may be the problem here is that my p
Well, things seem to have gotten more complicated than I had at first thought.
I have been dealing with J rather casually, setting up my own directory
structure. I searched through all the subdirectories in J602, but could not
find pacman. The addons directory was, I think one that I just creat
Hi, Raul
I think we're getting close. Here is what I got:
load '~addons/media/image3/view_m.ijs'
|control error: script
| 3 :0''
|[-45] C:\Program Files\J602\j602\addons\media\image3\image3.ijs
I don't know why it seems to want to call image3.ijs.
I downloaded everything (I probably won't use 1
Actually, this was an initial installation of the addons directory by way of
the Package Manager, and the base library is included. Thanks.
Charles
--
For information about J forums see
This problem is now solved. After installing addons properly, I finally
manaaged to get things to work (up to this point, anyway). Thanks to you all
for being so responsive and patient. I'm an old geezer (83) and not quite as
swift as I used to be.
Charles
Well, here I am again. I can't believe how much trouble I'm having with this.
Here is an example of the output I'm getting. This appears on page 17 of FVJ.
I've
changed things a bit to bring the matrix size up to 512x512 more quickly, but
otherwise, this is a picture of what's going on:
s=: 1
Hi, Cliff
Thanks for responding. I did as you suggested and added the "c:". Here is the
program:
s=: 1 1$1
sier=: 3 : 'y,y,.y'
s=: sier^:9 s
pa1=:255 255 0,:0 0 255
load '~addons\media\image3\view_m.ijs'
(pa1;s) write_image 'c:temp\temp.png'
view_image 'c:temp\temp.png'
And here is what I got: