From owner-bug-octave at bevo dot che dot wisc dot edu Thu Dec 19 22:07:59 1996 Subject: Error in lcm.m. From: "Carter Shanklin" To: bug-octave at bevo dot che dot wisc dot edu Date: Thu, 19 Dec 1996 23:07:56 -0500 (EST) You have a slight error with your lcm function. To demonstrate... $ cat temp3 lcm(3, 4, 5) $ octave < temp3 Octave, version 2.0 (sparc-sun-solaris2.5.1). Copyright (C) 1996 John W. Eaton. This is free software with ABSOLUTELY NO WARRANTY. For details, type `warranty'. parse error near line 36 of file /opt/octave-2.0/share/octave/2.0/m/elfun/lcm.m >>> endif ^ error: `function' command matched by `endif' near line 36 column 3 error: parse error while reading function file /opt/octave-2.0/share/octave/2.0/m/elfun/lcm.m error: `lcm' undefined near line 1 column 1 error: evaluating index expression near line 1, column 1 The problem is that line 32 in lcm.m should be 'if (nargin > 1)'. This fixed the problem for me. (I was going to use your bug_report thingie, but all that output for such a simple problem? For all I know you've already caught it.)