I was trying to re-create that equation but ran into a wall in that the code below is not producing the right results at all! I had read that JS has some big issues with floating point numbers and in particular cubed roots don’t really work all that well…
Here is my code implementation using Three.js:
The main issue is on line 30.
Anyone have any ideas!?