| ▲ | porridgeraisin 7 months ago | |
| Can you explain how? I'm an (aspiring) | ||
| ▲ | kccqzy 7 months ago | parent | next [-] | |
| I didn't peruse the source code. I just read the linked article in its entirety and it says > The computation is quite slow. In order to stay as flexible as possible, I'm using the Monte Carlo method. Which means the calculator is running about 250K AST-based computations for every calculation you put forth. So therefore I conclude Monte Carlo is being used. | ||
| ▲ | hawthorns 6 months ago | parent | prev | next [-] | |
| It's dead simple. Here is the simplified version that returns the quantiles for '100 / 2 ~ 4'.  | ||
| ▲ | constantcrying 6 months ago | parent | prev [-] | |
| Line 19 to 21 should be the Monte-Carlo sampling algorithm. The implementation is maybe a bit unintuitive but apparently he creates a function from the expression in the calculator, calling that function gives a random value from that function. | ||