Don,

I cut and pasted your .doc formula into J directly and saw exactly
what follows. Namely the only character
which did NOT print as you like is the left arrow. That is not
terrific, but it is a little surprising.

SD =. (%:(%N) * +/ *:)  ( ] - (+/ % (N  ) #))

I then did the following exercise in J and thought you may benefit
from it because the explicity to tacit translator is pretty smart, I
have found.

   SD =. (%:(%N) * +/ *:)  ( ] - (+/ % (N  ) #))
   SD
(%: (% N) * +/ *:) (] - (+/ (% N #)))
    13 : '%:(%N)* +/ *:  ( y - (+/y) % N=. #y)'
[: %: ([: % #) * [: +/ [: *: ] - +/ % #
   sd =.  13 : '%:(%N)* +/ *:  ( y - (+/y) % N=. #y)'
   sd 14 20 50
15.748

I think I understand your complaint better having looked at the
companion/SD link. You want to insert (N left-arrow) and (%N) into a
*tacit) J phrase. Not only will that not work, but your expression for
SD uses parentheses in a way that sort of makes the whole SD into a
hook. I will doctor up your original SD next, and replace the
parentheses to which I am referring with curly brackets.

SD =. {%:(%N) * +/ *:}  {] - (+/ % (N  ) #)}

-- 
(B=) <-----my sig
Brian Schott
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to