Herbie web demo

Enter a formula below, hit Enter, and Herbie will try to improve it.

To handle the high volume of requests, web requests are queued; there are 0 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 asFPCoreexpressions, including the top-level FPCore form, using only the following supported functions:

+, -, *, /, abs
The usual arithmetic functions
sqrt, sqr
Squares and square roots
exp, log
Natural exponent and natural log
expt
Raising a value to a power (also called pow)
sin, cos, tan, cot
The trigonometric functions
asin, acos, atan
The inverse trigonometric functions
sinh, cosh, tanh
The hyperbolic trigonometric functions

You can also use the constants PI and E.

Note: all formulas submitted to the Herbie web demo are logged and made publicly accessible. See what formulas other users submitted here.