help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiplication by zero


From: James Sherman Jr.
Subject: Re: multiplication by zero
Date: Tue, 18 May 2010 12:23:39 -0400

It will always be evaluated.  It has to simply because 0 times something isn't always 0.  The specific case I'm thinking of is 0*NaN is NaN not 0.

On Tue, May 18, 2010 at 12:13 PM, mmasny <address@hidden> wrote:

I have such an _expression_:
x=5;
y = 0 * f(x);

Will the value of f(x) be computed? What if it were .* instead of *? What if
I had y = f(x) * 0?
--
View this message in context: http://octave.1599824.n4.nabble.com/multiplication-by-zero-tp2221554p2221554.html
Sent from the Octave - General mailing list archive at Nabble.com.
_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave


reply via email to

[Prev in Thread] Current Thread [Next in Thread]