Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements Kahan's versions of elementary complex functions #2891

Merged
merged 7 commits into from
May 30, 2013

Commits on Apr 29, 2013

  1. Implements Kahan's versions of elementary complex functions…

    …paying particular attention to behavior near branch cuts.
    
    Functions: sqrt, ^, log, asin, acos, atan, tanh, asinh, acosh, atanh
    Includes also the ssqs to compute the mod-squared of a complex number scaled by a power of 2 to avoid overflow/underflow
    Issues
    - The ^ function fails tests so is disabled for now.
    - The log function works only for `Complex{FloatingPoint}`. Explicitly casting `{T<:Integer}Complex{T}` to floating-point `Complex` causes tests to fail.
    
    Ref: [Branch cuts for complex elementary functions](http://people.freebsd.org/~das/kahan86branch.pdf)
    jiahao committed Apr 29, 2013
    Configuration menu
    Copy the full SHA
    60d266a View commit details
    Browse the repository at this point in the history
  2. Correctly detects for both underflow and overflow in ssqs

    Fixes type error in log
    jiahao committed Apr 29, 2013
    Configuration menu
    Copy the full SHA
    83b1fb9 View commit details
    Browse the repository at this point in the history
  3. Corrects underflow check

    jiahao committed Apr 29, 2013
    Configuration menu
    Copy the full SHA
    b573a9b View commit details
    Browse the repository at this point in the history
  4. Adds edge cases for all except atanh, atan

    Reorders tests
    jiahao committed Apr 29, 2013
    Configuration menu
    Copy the full SHA
    73c830a View commit details
    Browse the repository at this point in the history

Commits on May 19, 2013

  1. Merge branch 'master' of github.com:JuliaLang/julia into jh/kahan-com…

    …plex
    
    Conflicts:
    	base/complex.jl
    JeffBezanson committed May 19, 2013
    Configuration menu
    Copy the full SHA
    e1eb4f6 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2013

  1. complex function improvements; make test-complex pass

    formatting fixes
    JeffBezanson committed May 20, 2013
    Configuration menu
    Copy the full SHA
    ae6d757 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    49f7865 View commit details
    Browse the repository at this point in the history