MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

maths/pi_monte_carlo_estimation.py:5–7  ·  view source on GitHub ↗
(self, x: float, y: float)

Source from the content-addressed store, hash-verified

3
4class Point:
5 def __init__(self, x: float, y: float) -> None:
6 self.x = x
7 self.y = y
8
9 def is_in_unit_circle(self) -> bool:
10 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected