Any Octave users? What is this code snippet actually doing?
Michael ODonnell
michael.odonnell at comcast.net
Sat Apr 6 16:58:04 EDT 2013
> kmax=1;
> kfactor=(kmax-1.0)/delta/(orderbc+1.0)/delbc^orderbc;
> Unless matlab treats floats and ints differently than most other
> languages, I'd say its a bug because zero over anything is always zero.
Shame on anybody who'd intentionally code something like
that without also providing a comment about such a seemingly
counterintuitive approach. >-/ Let's hope it's simply a bug...
Out of morbid curiosity, how does Octave report the value of
kfactor after
kmax=1
kfactor=(kmax-1.0)
??
More information about the gnhlug-discuss
mailing list