Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

montocarlo-ol-circlearea-0.0.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

montocarlo_ol_circlearea-0.0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file montocarlo-ol-circlearea-0.0.1.tar.gz.

File metadata

File hashes

Hashes for montocarlo-ol-circlearea-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bb9186c8fd0483d2a53e3b7449fb69209a944e3e50c6f02b30bce003ccf92bd5
MD5 50b74dc84ef071bd67f04c3709cd4e99
BLAKE2b-256 324504644760aa212efca9edeba953d132253aa74feae38ad8529dbfde055dd9

See more details on using hashes here.

File details

Details for the file montocarlo_ol_circlearea-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for montocarlo_ol_circlearea-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 72715ef118b89eb7051c0bd0fc98dcdd77679c46b5c8b52b54fae95a1d4e96cc
MD5 60f862c9482d59c6f79a82327cce3277
BLAKE2b-256 1af0aa610ac078ec824f17471525e853c4a67c87e6fa87c86f0420c7d7a0d78c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page