help-octave
[Top][All Lists]
Advanced

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

Re: Same .m file: different results with different versions of Octave


From: Søren Hauberg
Subject: Re: Same .m file: different results with different versions of Octave
Date: Mon, 19 Apr 2010 11:05:20 -0700

man, 19 04 2010 kl. 10:46 -0700, skrev Thomas D. Dean:
> http://gcc.gnu.org/bugzilla/post_bug.cgi, libstdc++ (43802).

In this report you have:

        sinh (arg) = inf + inf * i
        cosh (arg) = inf + inf * i
        s/c         = nan + nan * i   (should be 1 + 0 * i)

(note that s = sinh (arg) and c = cosh (arg))

I don't understand why

  (inf + inf * i) / (inf + inf * i)

should equal

  1 + 0 * i.

I can understand why the 'tanh' call should give this result, but once
you actually evaluate 'sinh' and 'cosh' and perform the division
manually I don't see why you should get 1.

Could you elaborate on this?

Søren



reply via email to

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