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

Herbie seems unable to improve on Rump's Example. #737

Open
inkydragon opened this issue Feb 19, 2024 · 1 comment
Open

Herbie seems unable to improve on Rump's Example. #737

inkydragon opened this issue Feb 19, 2024 · 1 comment

Comments

@inkydragon
Copy link

Wev version

input

(FPCore (x y)
  :name "Rump"
  :precision binary64
  :pre (and (== x 77617) (== y 33096))
  :spec -54767/66192
  (+ (+ (+ 
    (* 333.75 (pow y 6))
    (* (pow x 2) 
        (- (- (- (* (* 11 (pow x 2)) (pow y 2)) (pow y 6)) (* 121 (pow y 4))) 2))) 
      (* 5.5 (pow y 8))) (/ x (* 2 y))))
Percentage Accurate:
9.2% → 9.2%
Time:
1.5s
Alternatives:
1
Speedup:
1.0×

https://herbie.uwplse.org/demo/d2e0435359137cb982c33c73a281138505dfc7b9.f54ecc7459e2826747d647a0d98ec9e41c611ae9/graph.html

Docker version

Percentage Accurate:
9.2% → 9.2%
Time:
500.0ms
Alternatives:
1
Speedup:
1.4×

:name "Rump's expression from Stadtherr's award speech"

@pavpanchekha
Copy link
Contributor

That's correct; there are a couple of versions of Rump's expression out there, but this one Herbie has basically no good ideas for. Speculating, I think that's because the important step (associating the y^8 and the x^2 y^6 terms together, and then factoring) are hard for Herbie to achieve; it's in general weak on polynomials.

Was there something in particular about this expression that makes it seem like Herbie should do better than it does?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants