New answers tagged simulation
0
votes
Moving ball simulation within a donut
More Descriptive/Accurate Docstrings
Since you have chosen to use docstrings instead of type hints, then try to be more precise is describing what the arguments to the functions are. For example, I ...
1
vote
Moving ball simulation within a donut
I don't have any advice about performance, but here are some general
coding style suggestions.
DRY
This expression is used several times:
box_size/2
You can set it ...
Top 50 recent answers are included
Related Tags
simulation × 375python × 152
performance × 69
c++ × 66
java × 59
random × 52
beginner × 50
python-3.x × 47
physics × 43
object-oriented × 33
numpy × 28
statistics × 22
game × 18
r × 16
c# × 14
dice × 14
javascript × 13
algorithm × 13
c × 13
matplotlib × 11
programming-challenge × 10
numerical-methods × 9
multithreading × 8
interview-questions × 8
matlab × 8