From help-request at octave dot org Thu Nov 24 19:47:38 2005 Subject: Function problem From: blah BLABBER To: help at octave dot org Date: Thu, 24 Nov 2005 17:45:54 -0800 (PST) --0-1868981217-1132883154=:38367 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit If I define the following function: function t (x) x**2 endfunction It seems that I cannot multiply this function by a constant. For example: Octave:1> 2 * t(4) gives an error. The error says: "evaluating binary operator * " Can anyone explain why this is ? This does not happen to me with other programs. Thanks much. --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. --0-1868981217-1132883154=:38367 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
If I define the following function:

function t (x)
x**2
endfunction

It seems that I cannot multiply this function by a  constant.

For example:

Octave:1> 2 * t(4)

gives an error. The error says: "evaluating binary operator * "

Can anyone explain why this is ? This does not happen to me with other programs.

Thanks much.



Yahoo! Music Unlimited - Access over 1 million songs. Try it free. --0-1868981217-1132883154=:38367-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------