Don,
NB. Compare
^. ^ 2 NB. ln(exp 2)
2
[: ^. ^ 2 NB. [: ln(exp 2), that is, [: 2
|domain error
| [:^.^2
([: ^. ^) 2 NB. (ln o exp) 2, that is, ln(exp 2)
2
In the first and second calculations there is no tacit usage. In the third
calculation,
([: ^. ^) is a tacit verb equivalent to the mathematical composition (ln o exp).
Kip
Don Watson wrote:
(snip)
That's interesting. So there is a different process in evaluating the
creation of a verb in tacit programming and the use of that verb when
execution takes place. Surely in execution the expression to the right of
"[:" has to produce a result, doesn't it?
Don
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm