Timeline for Random point on a sphere
Current License: CC BY-SA 4.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 17, 2020 at 9:04 | history | edited | CommunityBot | Commonmark migration | |
| Sep 12, 2019 at 7:26 | comment | added | Kevin Cruijssen | @OlivierGrégoire Thanks! Nice switch of variable values. :) | |
| Sep 12, 2019 at 7:25 | history | edited | Kevin Cruijssen | CC BY-SA 4.0 | added 284 characters in body |
| Sep 11, 2019 at 13:35 | comment | added | Olivier Grégoire | 109 bytes (you can use your string output instead of double[] as that doesn't change the byte-count.) | |
| Sep 11, 2019 at 12:57 | comment | added | Olivier Grégoire | Aaah, it's been banned as a loophole -_-' My bad... | |
| Sep 11, 2019 at 12:48 | comment | added | Olivier Grégoire | Actually, no, no need to sqrt because sqrt(1)==1. So I stand with my golf suggestion. | |
| Sep 11, 2019 at 12:41 | comment | added | Olivier Grégoire | 108 bytes Uses a modified 2nd algorithm where I only allow values where s == 1 (instead of s<=1 and then normalizing). It sometimes gives an answer but mostly doesn't because of the timeout. Edit: Oops, I forgot to Math.sqrt the result | |
| Sep 9, 2019 at 11:18 | comment | added | Kevin Cruijssen | @Arnauld Yep. Instead of 3x M.sin, 1x M.cos and 1x M.acos, your approach uses 2x M.sin and 1x M.sqrt, which is where the additional saved bytes mostly come from. :) | |
| Sep 9, 2019 at 11:11 | comment | added | Arnauld | Using sqrt(1-k*k) actually saves more bytes in Java than it does in JS. :) | |
| Sep 9, 2019 at 11:07 | history | edited | Kevin Cruijssen | CC BY-SA 4.0 | added 865 characters in body |
| Sep 9, 2019 at 9:36 | history | edited | Kevin Cruijssen | CC BY-SA 4.0 | Forgot normalization part of 2nd algorithm.. |
| Sep 9, 2019 at 8:45 | history | edited | Kevin Cruijssen | CC BY-SA 4.0 | added 61 characters in body |
| Sep 9, 2019 at 8:36 | history | edited | Kevin Cruijssen | CC BY-SA 4.0 | added 61 characters in body |
| Sep 9, 2019 at 8:22 | history | edited | Kevin Cruijssen | CC BY-SA 4.0 | deleted 2 characters in body |
| Sep 9, 2019 at 8:10 | history | edited | Kevin Cruijssen | CC BY-SA 4.0 | deleted 2 characters in body |
| Sep 9, 2019 at 8:02 | history | answered | Kevin Cruijssen | CC BY-SA 4.0 |