Herbie web demo

Write a formula below, and Herbie will try to improve it. Enter approximate ranges for inputs.

Show an example | Use FPCore

Unfortunately, the online Herbie demo has crashed. The maintainers have been notified and will restart Herbie when they've got a moment, but if it's been a few days, it can help to file an issue.

To handle the high volume of requests, web requests are queued; there are 1 jobs in the queue right now. Web demo requests may also time out and cap the number of improvement iterations. To avoid these limitations, install Herbie on your own computer.

Please enter formulas as FPCore expressions, including the top-level FPCore form, using only the following supported functions:

+, -, *, /, abs
The usual arithmetic functions
and, or
Logical connectives (for preconditions)
pow
Raising a value to a power
exp, log
Natural exponent and natural log
sin, cos, tan
The trigonometric functions
asin, acos, atan
The inverse trigonometric functions
sqrt, cbrt
Square and cube roots
PI, E
The mathematical constants

Note: all formulas submitted here are logged and made public. See what formulas other users submitted.