Skip to content

Instantly share code, notes, and snippets.

@torokati44
Created August 25, 2015 21:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torokati44/eb10a86ee97a7b8f08ab to your computer and use it in GitHub Desktop.
Save torokati44/eb10a86ee97a7b8f08ab to your computer and use it in GitHub Desktop.
The generated expression is:
x x -92.2377 x inv - ^ x -34.9367 ^ -53.6051 + neg neg -59.9354 + x abs -93.1926 5.33465 + cos x inv sqrt * x x - -64.255 sin sqrt + * abs sqrt inv sin x -59.5055 + + inv neg x x ^ ^ -28.5652 -83.1926 - x neg -75.0351 35.8105 + abs x - x + inv sqrt - inv x x * x x 46.262 ^ x - inv -23.7232 abs -20.0237 sin + sqrt -17.4068 abs * * + sqrt + + neg + 23.2486 sin x abs -50.7365 * neg ^ x cos sin ^ ^ - * -67.5583 + -91.428 - 33.7192 ^ sqrt -57.6454 * 99.3374 83.8863 x x * neg * ^ - + -76.1303 cos sin + cos -18.6552 x x inv sqrt - cos inv 83.8093 abs ^ + x x 60.2191 sqrt x cos 64.9359 neg + ^ -89.1284 -47.2417 37.57 70.0226 x abs 17.7244 - * + x x sin inv ^ + sqrt x 67.5474 sin + abs x -18.419 inv * abs abs 64.8939 x abs inv 88.9673 x abs ^ + ^ - abs - abs inv - sqrt abs x cos + + ^ x sin ^ sin inv ^ - ^ x inv -5.14284 38.896 x x 98.8533 + sqrt sin x - -19.9279 + - x inv * x 19.4499 inv abs x ^ sqrt -57.9877 neg sqrt + x * -93.6665 sqrt - cos sqrt ^ cos -68.7527 * + - x ^ -62.9158 * + neg cos 35.3843 cos -98.7682 cos x -27.022 -63.5652 sqrt neg cos -12.1217 x + neg neg sqrt abs x x ^ sin neg inv abs + + x + abs cos - ^ - abs - cos x * neg 93.3861 ^ ^ ^ + * - 46.7153 abs + neg neg - * neg
Evaluating it 1000 times without JIT...
time elapsed: 13845 us
Evaluating it 1000 times with JIT...
JIT-ing took 11671 us
time elapsed: 1587 us (13258 us total)
Mismatches:
Found 0 mismatches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment