[comp.lang.apl] spelling error in J tutorial

wine@maui.cs.ucla.edu (David Wine) (03/12/91)

When I try the example from tutorial page Ib,
I get a spelling error:
 
   '01234567' {~ |: arcs
3725571555261237747274
5602627607332170423003
   b=. '(i.,~x.)e.'
   cmFarcs=. '' ::(b,'y.+/..*x.,1')
spelling error

ljdickey@watmath.waterloo.edu (L.J.Dickey) (03/12/91)

In article <wine.668731521@maui> wine@maui.cs.ucla.edu (David Wine) writes:
>When I try the example from tutorial page Ib,
>I get a spelling error:
> 
>   '01234567' {~ |: arcs
>3725571555261237747274
>5602627607332170423003
>   b=. '(i.,~x.)e.'
>   cmFarcs=. '' ::(b,'y.+/..*x.,1')
>spelling error

I think that the problem might be the "/.." .
Replace  
  	"y.+/..*x."
by  
      	"y.+/ ..*x."
I think that the parser tries to create "/. ." instead of "/ ..".
I discovered this when trying to multiply two matrices together.
        a+/..*b
would not work, but
        a+/ ..*b
did work.





-- 
Prof L.J. Dickey, Faculty of Mathematics, U of Waterloo, Canada N2L 3G1
	Internet:	ljdickey@watmath.waterloo.edu
	UUCP:		ljdickey@watmath.UUCP	..!uunet!watmath!ljdickey
	X.400:		ljdickey@watmath.UWaterloo.ca

Harald.Brandt@eua.ericsson.se (Harald Brandt) (03/12/91)

In article <wine.668731521@maui> wine@maui.cs.ucla.edu (David Wine) writes:
> When I try the example from tutorial page Ib,
> I get a spelling error:
>    ... ... ... ...
>    cmFarcs=. '' ::(b,'y.+/..*x.,1')
> spelling error

/.. must be / ..
i.e there must be a blank between the slash and the dot, otherwise it will 
be interpreted as an inflection of slash (or a double inflection as there 
are two dots, which is undefined).

Phone: +46 8 727 39 55  Fax: +46 8 749 05 94
Ellemtel Utvecklings AB
box 1505
S-125 25 Alvsjo
Sweden

hui@yrloc.ipsa.reuter.COM (Roger Hui) (03/19/91)

There have been some spelling changes in J Version 3.  In particular,
  old spelling        new spelling
     {:                   ]
     }:                   [
     ..                   .
     .                    `
     :                    `:
     ::                   :

These changes should have been included in the status.doc file.
I had updated the spelling in the tutorials that we (ISI) ship.
It is possible that not all bulletin-board and ftp sites have had their 
tutorials updated with the new spellings.  I will look into this.

Roger Hui
Iverson Software Inc., 33 Major Street, Toronto, Ontario  M5S 2K9
(416) 925 6096