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

Cuberoot: Apply first iteration explicitly #11

Merged

Commits on Jan 26, 2024

  1. Cuberoot: Apply first iteration explicitly

    Applying the first iteration explicitly appears to speed up the cuberoot
    function by a bit over 20%:
    
     Before:
     Halley Final:  0.14174999999999999
    
     After:
     Halley Final:  0.11080000000000001
    
    There is an assumption that compilers will precompute the constants like
    `0.7 * (0.7)**3`, and that all will do so in the same manner.
    marshallward committed Jan 26, 2024
    Configuration menu
    Copy the full SHA
    aa09cc7 View commit details
    Browse the repository at this point in the history