-
Notifications
You must be signed in to change notification settings - Fork 0
/
pi.json
53 lines (53 loc) · 961 Bytes
/
pi.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[{
"blocks": [
{
"distribution": "Uniform",
"name": "X",
"once": false,
"params": {
"a": "-1",
"b": "1"
},
"show": true,
"type": "Random Variable",
"typeCode": 0
},
{
"distribution": "Uniform",
"name": "Y",
"once": false,
"params": {
"a": "-1",
"b": "1"
},
"show": true,
"type": "Random Variable",
"typeCode": 0
},
{
"initialValue": 0,
"history": false,
"name": "Sa",
"show": true,
"type": "Accumulator",
"typeCode": 3,
"value": "((X * X + Y * Y < 1) ? 1 : 0)"
},
{
"name": "Pi",
"history": false,
"show": true,
"type": "Expression",
"typeCode": 1,
"value": "Sa * 4 / _i"
}
],
"modelParams": {
"name": "Pi",
"steps": "200000",
"method": "deterministic"
},
"methodParams": {
"samples": 1000
}
}]