A wrapper for the Vegas integrator
Project description
vegas_params
Wrapper package for Vegas integrator.
Installation
You can install vegas_params via github link
pip install git+https://github.com/RTESolution/vegas_params.git
Examples
Gaussian integral
Let's caluclate integral $$ \int\limits_{-1000}^{1000}dx \int\limits_{-1000}^{1000}dy ; e^{-(x^2+y^2)} $$
Here is how you can do it:
@integral
@expression(x=Uniform([-1000,1000]),
y=Uniform([-1000,1000]))
def gaussian(x, y):
return np.exp(-(x**2+y**2))
Now gaussian is a callable, where you can pass the parameters of the vegas integrator:
gaussian(nitn=20, neval=100000)
#3.13805(16) - close to expected Pi
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
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 vegas_params-0.1.0.tar.gz.
File metadata
- Download URL: vegas_params-0.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5538e2c88cbcfa280fd5beb72d17343659018145e321a82fedebcce8e70a3637
|
|
| MD5 |
b292cbbfc519f33bc7df6f077304746f
|
|
| BLAKE2b-256 |
b2745cf5a1dd39f7a777207631bb8de79f7628a64444c5b0ea13c720eda60cc5
|
Provenance
The following attestation bundles were made for vegas_params-0.1.0.tar.gz:
Publisher:
python-publish.yml on RTESolution/vegas_params
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vegas_params-0.1.0.tar.gz -
Subject digest:
5538e2c88cbcfa280fd5beb72d17343659018145e321a82fedebcce8e70a3637 - Sigstore transparency entry: 153050647
- Sigstore integration time:
-
Permalink:
RTESolution/vegas_params@0d1def20333a2fb23c9423a0124e13392b302afa -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/RTESolution
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@0d1def20333a2fb23c9423a0124e13392b302afa -
Trigger Event:
release
-
Statement type:
File details
Details for the file vegas_params-0.1.0-py3-none-any.whl.
File metadata
- Download URL: vegas_params-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d04c8c57e579de6e59b82846d4e7210731d280e6d706389db11a9a9ad632d4b
|
|
| MD5 |
c682138002ea65a07832059ee6abf5d2
|
|
| BLAKE2b-256 |
a9d367cd74c9e5cc086050138f740a4231d92a4b88d981ca8dd435241330e456
|
Provenance
The following attestation bundles were made for vegas_params-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on RTESolution/vegas_params
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vegas_params-0.1.0-py3-none-any.whl -
Subject digest:
0d04c8c57e579de6e59b82846d4e7210731d280e6d706389db11a9a9ad632d4b - Sigstore transparency entry: 153050648
- Sigstore integration time:
-
Permalink:
RTESolution/vegas_params@0d1def20333a2fb23c9423a0124e13392b302afa -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/RTESolution
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@0d1def20333a2fb23c9423a0124e13392b302afa -
Trigger Event:
release
-
Statement type: