Maths/Stats challenge - 1 of 2 - polls
|
05-25-2022, 06:54 AM
Post: #12
|
|||
|
|||
RE: Maths/Stats challenge - 1 of 2 - polls
This Python program uses brute force to loop through all numbers from 1 to 100:
Code: import numpy as np We can use it with the given examples: Code: for p in [ The result is: [14. 25. 22.] / 61 ~ [0.23 0.41 0.36] [10. 15. 38. 21.] / 84 ~ [0.12 0.18 0.45 0.25] [15. 2. 48. 29.] / 94 ~ [0.16 0.02 0.51 0.31] [34. 13. 19. 10. 0.] / 76 ~ [0.45 0.17 0.25 0.13 0. ] |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)