patchGNU Octave - Patches: patch #8172, Improve complex mapper functions...


patch #8172: Improve complex mapper functions (see Numerical, item 2 on Projects page)

Submitted by:  Craig Hudson <craighudson>
Submitted on:  Fri 30 Aug 2013 01:04:39 PM UTC  
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Fri 30 Aug 2013 01:04:39 PM UTC, original submission:

This includes code for making use of signed zero, as described in Branch Cuts for Complex Elementary Functions, or Much Ado About Nothing's Sign Bit by W. Kahan. Note that casts of complex numbers with imaginary part equal to zero to real numbers previously occurred with both positive and negative zero, but now only occurs with positive zero. There is a case for not doing this narrowing conversion with either sign of zero, as (eg) dividing a real number by a complex number with imaginary part equal to positive zero gives the wrong sign of the zero imaginary part to the result. eg 1/(1 + 0*i) should be 1 - 0*i, but is calculated as 1 due to the denominator being cast to a real value.

Craig Hudson <craighudson>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #28959:  change.diff added by craighudson (46KiB - text/x-patch)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by craighudson (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-30 craighudson Attached File- => Added change.diff, #28959

    Back to the top

    Powered by Savane 3.3