Timeline for Simplex number calculation (all dimensions) in python
Current License: CC BY-SA 3.0
7 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 3, 2016 at 19:48 | vote | accept | Aemyl | ||
| Sep 30, 2016 at 16:55 | comment | added | Aemyl | I didn't want you to retract your aspect of using for loops :) I just wanted to explain why I use while loops. | |
| Sep 30, 2016 at 8:28 | comment | added | Peilonrayz♦ | @Aemyl I didn't see your answer when I started and finished mine, but it was a thought provoking question, :). To answer your 'mentions', (1) You need either // or /, I chose // as it matches the functions range. (2) I don't know how I can help you like for loops, but I will not retract my encouragement for you to use them. As they objectively make the function much cleaner than the equivalent using a while. | |
| Sep 30, 2016 at 5:44 | vote | accept | Aemyl | ||
| Oct 3, 2016 at 19:46 | |||||
| Sep 30, 2016 at 5:41 | comment | added | Aemyl | Good point, but I actually knew the iterative solution already at the time of asking the question (I just asked to share this in the community). As you can see, I answered the question too. I have two mentions to you: do you need the double Slash before factorial(dim)? and I like the while loop more than the for loop, because I expierienced weird things with the order of execution in for loops | |
| Sep 29, 2016 at 8:36 | history | edited | Peilonrayz♦ | CC BY-SA 3.0 | normalise the Pi's and format bulletpoint 5 |
| Sep 29, 2016 at 8:31 | history | answered | Peilonrayz♦ | CC BY-SA 3.0 |