I have to write a code to calculate the number of integer lattice points inside a circle, and the radius and origin points must be entered by the user. I haven't been able to figure out the equation to this problem.
How do you calculate the number of integer lattice points in a circle of radius r and origin points (x,y)? Both values may not necessarily be integers.