Any Octave users? What is this code snippet actually doing?

Bruce Labitt bdlabitt at gmail.com
Sat Apr 6 19:15:54 EDT 2013


If I knew how to debug in octave I'd tell you.  Maybe tonight I'll brush up
on octave...

So far my python script runs but outputs 0.  Kfactor seems to be evaluated
as 0.  I bet it would work better if kfactor != 0...
 On Apr 6, 2013 4:59 PM, "Michael ODonnell" <michael.odonnell at comcast.net>
wrote:

>
>
> > 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)
>
>   ??
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20130406/ddff675e/attachment-0001.html 


More information about the gnhlug-discuss mailing list