**New here?**Learn about Bountify and follow @bountify to get notified of new bounties! Follow @bountify x

Find the cartesian XYZ coordinates of cube "3141592653589793238462" using the method described at the url: cubicREMOVEpostcode.com (remove the word in capital letters, "REMOVE"). Please make sure you give the correct answer. I think the first python script have bugs for Y and Z. I think the value of X is correct. Please note that the XYZ coordinates are those of the cube centers. Please calculate it using your own logic.

Any bugs found in the first python script will be greatly appreciated.

Make sure you completely understand it and can help me out. Ask any questions you may have, please.

## 3 Solutions

I hacked together a brand new python implementation that takes an integer coordinate as command line input and outputs the x, y, and z coordinate as a tuple. The code is available here. Since the website didn't specify very clearly, I let (0, 0, 0) be coordinate 1, and let the x be the layer number, and y and z being the 2D coordinates on the plane. Obviously, my solution differs greatly from the python script posted on the website; I wasn't able to pick out any specific bugs, as I don't really understand the implementation. I can adjust my program to fit a more clear specification for 3D coordinates if you give one. My code should run in O(1) or constant time.

In short my answer is ~~[-8402969, 9767162, -3561896]~~ ~~[3561896.5, 9767162, -8402969]~~ ~~[3561896.5, -9767161.5, -8402969.5]~~ [3561896.5, -8402969.5, -9767161.5]. The code and an explanation can be found on my repo.

Let me try too.

```
X_meters: 3561896.5
Y_meters: -8402969.5
Z_meters: -9767161.5
```

The solution is based on a code you provided in the bounty description but I found a replacement for those long running calculations with cycles with several formulas that finally appeared to be absolutely trivial. Here it is: https://repl.it/@TheOsch/cubicpostcode

*projection > left*bottom). I'm getting the wrong values and with the wrong sign. Can you please check that also?