A Python library for calculating area of overlapped region between 2 Circle using MontoCarlo method (Random Points)
Project description
montocarlo-ol-circlearea
A Python library for calculating Area of overlapped region between 2 Circle using MontoCarlo method (Random Points)
Installation
pip install montocarlo-ol-circlearea
Get started
How to calculate area of overlapped region of the circle with this lib:
from montocarlo_ol_circlearea import Overlapped_2_circles
# Instantiate a Overlapped_2_circle object with 3 params c1 ,c2, Random points
'''
:param _c1: circle1[center c1, center c2, radius r1]
:type _c1: list
:param _c2: circle2[center c1, center c2, radius r2]
:type _c2: list
:param _N: Number of Random Points
:type _N: int
'''
MonteCarlo = Overlapped_2_circles([0,0,2],[2,2,2],10000)
# Call the area method
result = MonteCarlo.area()
source code link
https://github.com/sabareeswarans11/montocarlo-ol-circlearea
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file montocarlo-ol-circlearea-0.0.1.tar.gz.
File metadata
- Download URL: montocarlo-ol-circlearea-0.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb9186c8fd0483d2a53e3b7449fb69209a944e3e50c6f02b30bce003ccf92bd5
|
|
| MD5 |
50b74dc84ef071bd67f04c3709cd4e99
|
|
| BLAKE2b-256 |
324504644760aa212efca9edeba953d132253aa74feae38ad8529dbfde055dd9
|
File details
Details for the file montocarlo_ol_circlearea-0.0.1-py3-none-any.whl.
File metadata
- Download URL: montocarlo_ol_circlearea-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72715ef118b89eb7051c0bd0fc98dcdd77679c46b5c8b52b54fae95a1d4e96cc
|
|
| MD5 |
60f862c9482d59c6f79a82327cce3277
|
|
| BLAKE2b-256 |
1af0aa610ac078ec824f17471525e853c4a67c87e6fa87c86f0420c7d7a0d78c
|