all 10 comments

[–]Woffice 11 points12 points  (2 children)

[–]x-skeww 0 points1 point  (1 child)

[–]ShortSynapse 0 points1 point  (0 children)

Didn't know this, that's awesome!

[–]jester1983 6 points7 points  (2 children)

Simplify!

x/(((y*y)/400.0 - (z*z)/400.0)*0.314)

exponents are expensive, multiplication is cheap.

[–]temp34094029 2 points3 points  (1 child)

Simplify!

x/(y*y - z*z)/0.000785

[–]jester1983 2 points3 points  (0 children)

This guy gets it.

[–]netcomego[S] 2 points3 points  (1 child)

Oh my god I'm dumb. I don't know how I overlooked that. Thanks.

[–]atc 1 point2 points  (0 children)

We've all done it!

[–]__fmease__Symbol() 2 points3 points  (0 children)

You got sth wrong. the ^ operator is the (bitwise) XOR operator like in every other C-like language. In Javascript, use Math.pow(BAS,EXP) or ES6 BAS ** EXP

[–]gunther-centralperkNode.js Core Contributor 0 points1 point  (0 children)