error-solver-2.1.1
توضیحات
Estimates propagation error tolerances for systems of equations.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | error-solver-2.1.1 |
| نام | error-solver |
| نسخه کتابخانه | 2.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Matt Pewsey |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/mpewsey/error_solver |
| آدرس اینترنتی | https://pypi.org/project/error-solver/ |
| مجوز | BSD 3-Clause License |
# Error Solver


[](https://travis-ci.com/mpewsey/error_solver)
[](https://error-solver.readthedocs.io/en/latest/?badge=latest)
[](https://codecov.io/gh/mpewsey/error_solver)
## About
This package contains classes for estimating the propagation error tolerances
for a system of equations.
## Installation
This package may be installed via pip:
```
pip install error_solver
```
The above installation only install the dependencies required for the
`ErrorSolverPy` class. To also install the dependencies necessary for the
`ErrorSolver` class, use the following command instead:
```
pip install error_solver[all]
```
## Example: Error in Cylinder
The below example determines the propagation error tolerances for the cross sectional
area `A` and volume `V` of a cylinder given the measurement tolerance for the radius
`r` and height `h`.
```python
from error_solver import ErrorSolver
# Define the equations
EQUATIONS = [
'A = pi * r**2',
'V = A * h'
]
# Solve the equations by some means and assemble the values in a dictionary
values = {
'h': 12,
'r': 5,
'A': 78.54,
'V': 942.48
}
# Define the known error tolerances
errors = {
'h': 0.05,
'r': 0.05
}
solver = ErrorSolver(EQUATIONS)
solver.solve(values, errors)
# value error pct_error is_calc
# var
# A 78.539816 1.570796 2.000000 True
# V 942.477796 22.776547 2.416667 True
# h 12.000000 0.050000 0.416667 False
# r 5.000000 0.050000 1.000000 False
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.14.5 | numpy |
| >=0.23.0 | pandas |
| >=1.1.1 | sympy |
| ==0.14 | docutils |
| >=0.8.0 | numpydoc |
| >=3.5.1 | pytest |
| >=2.5.1 | pytest-cov |
| >=2.0.15 | codecov |
| >=1.1.1 | sympy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl error-solver-2.1.1:
pip install error-solver-2.1.1.whl
نصب پکیج tar.gz error-solver-2.1.1:
pip install error-solver-2.1.1.tar.gz