Hello Markus;
Are you asking how to remember which is which? Or is there a difference
on another axis?
Markus Schmidt-Groettrup wrote:
The question has been answered already. The mathematical convention is
too important.
Thus minus - , divide %, less -. , element e. and by the way Matrix
divide % have the
conventional arguments and differ from the J rule:
"x are the control information - y are the data" as expressed in JfC.
But so far I have not seen the argument, why the sort /: and \:
behave different.
When writing code I quite often make mistakes here, so a good argument
would help to remember.
Thanks,
Markus
Terrence Brannon schrieb:
It seems that the Residue function should follow the same argument
order as %
It does not seem consistent or intuitive for the arguments to be
reversed.
What motivated this decision? I spent 5 minutes about to tear my hair
out trying
to figure out the results I was getting from Residue.
7 % 2
3.5
2 | 7 NB. would be 7 | 2 if I were designing J :)
1
I'm sorry to ask what seem like such nitpicky little questions, but I
got a
great answer regarding Passive, so perhaps I am just ignorant of some
loftier
motivation for such argument calling conventions.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
later ...
------------------------------------------------------------------------
|\/| Randy A MacDonald | APL: If you can say it, it's done.. (ram)
|/\| [EMAIL PROTECTED] |
|\ | | The only real problem with APL is that
BSc(Math) UNBF'83 | it is "still ahead of its time."
Sapere Aude | - Morten Kromberg
Natural Born APL'er | Looking for a whip-smart APL developer? Send me a note
<mailto:[EMAIL PROTECTED]>
-----------------------------------------------------(INTP)----{ gnat }-
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm