A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1496.htm below:

Minimal fix to complex divide


Submitter: Fred J. Tydeman (USA)
Submission Date: 2010-06-17
Subject: Minimal fix to complex divide

Consider the expression: (1.0+1.0*I)/(0.0+NAN*I). It produces (0.0+0.0*I) instead of the expected (NAN+NAN*I). This is because logbw is infinity for both INFINITY and zero.

Change "isinf(logbw)" to "(INFINITY==logbw)".


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4