Skip to main content
33 events
when toggle format what by license comment
Dec 23, 2023 at 16:16 vote accept Simd
Dec 16, 2023 at 20:33 comment added Simd @NickKennedy Thank you. Fixed.
Dec 16, 2023 at 20:33 history edited Simd CC BY-SA 4.0
added 4 characters in body
Dec 16, 2023 at 20:02 answer added doubleunary timeline score: 3
Dec 16, 2023 at 19:52 comment added Nick Kennedy The result for a=0 should be 6; the 0.5 diameter circle only fills about 39% of the top-left grid square
Dec 16, 2023 at 19:51 answer added Nick Kennedy timeline score: 4
Dec 16, 2023 at 19:48 history became hot network question
Dec 16, 2023 at 18:25 history edited Simd CC BY-SA 4.0
added 4 characters in body
Dec 16, 2023 at 18:01 history edited Simd CC BY-SA 4.0
added 322 characters in body
Dec 16, 2023 at 17:40 comment added Simd @Graham Yes. Fixed again. The second example should be correct now too.
Dec 16, 2023 at 17:40 history edited Simd CC BY-SA 4.0
deleted 29 characters in body
Dec 16, 2023 at 17:33 history edited Simd CC BY-SA 4.0
added 4 characters in body
Dec 16, 2023 at 16:42 comment added Graham Following my previous comment about symmetry and given your explanation why square 4,4 should not be included should square 3,3 on the grid diagonal be included to give us 11 squares with the answer dropping back to 4
Dec 16, 2023 at 16:15 comment added Simd @user1502040 Thanks, fixed. Could you double check my second example please.
Dec 16, 2023 at 16:14 history edited Simd CC BY-SA 4.0
edited body
Dec 16, 2023 at 16:08 comment added user1502040 I think 'd' and 'x' are confusing names. Use 'r' for the radius, and maybe 'a' for 'x'.
Dec 16, 2023 at 16:02 history edited Simd CC BY-SA 4.0
added 31 characters in body
Dec 16, 2023 at 15:58 answer added Ajax1234 timeline score: 4
Dec 16, 2023 at 15:46 comment added Simd @Graham Thank you. Fixed
Dec 16, 2023 at 15:46 history edited Simd CC BY-SA 4.0
added 3 characters in body
Dec 16, 2023 at 15:17 comment added Graham Is this not a symmetrical problem about the diagonal of the grid. If so should there not be 10 qualifying squares in your first example viz. 1, -1, 3, 3, 2, -1, 1, -3, -1, 1 giving a total of 5
Dec 16, 2023 at 13:01 comment added l4m2 No but I stop here and ask ChatGPT instead
Dec 16, 2023 at 12:30 comment added Simd @l4m2 If the circle goes directly though the midpoint and it is one of the squares at location (i, i) (that is on the diagonal) then the square is not half covered. Does that answer your question?
Dec 16, 2023 at 12:26 comment added l4m2 I mean circle cover midpoint but not half covered
Dec 16, 2023 at 12:22 history edited Simd CC BY-SA 4.0
added 549 characters in body
Dec 16, 2023 at 12:19 comment added l4m2 Is there counterexample where [midpoint included] xor [half in]?
Dec 16, 2023 at 12:09 history edited Simd CC BY-SA 4.0
added 138 characters in body
Dec 16, 2023 at 11:28 comment added Simd @LevelRiverSt I have made the input clear I hope. I'll add a comment about numerical accuracy m
Dec 16, 2023 at 11:24 history edited Simd CC BY-SA 4.0
added 49 characters in body
Dec 16, 2023 at 11:19 history edited Simd CC BY-SA 4.0
added 49 characters in body
Dec 16, 2023 at 10:43 comment added Level River St Is d guaranteed to be an integer, or can it be any real number? Also, what is the margin of error? is it acceptable to incorrectly include a square with 49% or 51%? That will make a huge difference to the length of the code. It would be much easier if we could include all squares that have any part of the circle in them.
Dec 16, 2023 at 10:36 history edited Simd CC BY-SA 4.0
added 277 characters in body
Dec 16, 2023 at 10:29 history asked Simd CC BY-SA 4.0