Skip to content

Latest commit

 

History

History
12 lines (12 loc) · 307 Bytes

J_EXAMPLES.md

File metadata and controls

12 lines (12 loc) · 307 Bytes

2021-01-15
Pi Calculation:

slidng =: <;._3
chunk  =: 3 : '(2*i.((#y) % 2)) { 2 sliding y'
pi     =: 3 : '+/ > 8% each */ each chunk 1+ 2 * i.y'

2021-01-17
Pi Calculation (revised from above because we learned things):

pi =: 3 : '+/ > 8 % each */ each _2 <\ 1+ 2 * i.y'