|
From: | Thomas D. Dean |
Subject: | Re: Same .m file: different results with different versions of Octave |
Date: | Wed, 21 Apr 2010 05:19:32 -0700 |
On Wed, 2010-04-21 at 00:49 -0400, Judd Storrs wrote: Are we over-thinking this? What is wrong with: if ( isfinite(s.real()) && isfinite(s.imag()) && isfinite(c.real()) && isfinite(c.imag()) ) { // The min value of cosh() is 1 t = s/c; } else { // how to handle this? If either contains: // sinh cosh // nan nan // nan inf // inf nan // inf inf t=tanh(arg); // this should be some logic determined value... }
[Prev in Thread] | Current Thread | [Next in Thread] |