Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!ctrsol!ginosko!uunet!cs.dal.ca!silvert From: silvert@cs.dal.ca (Bill Silvert) Newsgroups: comp.lang.fortran Subject: Re: fortran statement Summary: MOD is a function, not a matrix Message-ID: <1989Jul31.141815.3884@cs.dal.ca> Date: 31 Jul 89 14:18:15 GMT References: <28605@beta.lanl.gov> <588BLUMBERG@BGUVM> Sender: silvert@cs.dal.ca.UUCP (Bill Silvert) Reply-To: bill@biomel.UUCP Organization: Habitat Ecology Div., Bedford Inst. of Oceanography Lines: 17 In article <588BLUMBERG@BGUVM> BLUMBERG@BGUVM.BITNET (Dan Blumberg, Dept. Of Geog. Ben Gurion Univ. Israel) writes: >mod is the name of a two fimensional matrix sized I by J. MOd (n,2) is the >cell in matrix Mod with the coordinates of n,2(like geographical coordinates). MOD(I, J) is the remainder when I is divided by J, like I % J in C. It is defined at the top of p. 15-23 of the standard, and is technically defined as I - INT(I/J)*J, which unfortunately is not an optimal choice for negative numbers. One of the advantages of having a standard is that questions can be correctly answered on the basis of facat. Dan, are you listening? -- Bill Silvert, Habitat Ecology Division. Bedford Institute of Oceanography, Dartmouth, NS, Canada B2Y 4A2 UUCP: ...!{uunet,watmath}!dalcs!biomel!bill Internet: biomel@cs.dal.CA BITNET: bs%dalcs@dalac.BITNET