aitkens-0.1.0
توضیحات
Aitken's delta-squared acceleration
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aitkens-0.1.0 |
| نام | aitkens |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | J. M. F. Tsang |
| ایمیل نویسنده | j.m.f.tsang@cantab.net |
| آدرس صفحه اصلی | https://github.com/jftsang/aitkens |
| آدرس اینترنتی | https://pypi.org/project/aitkens/ |
| مجوز | CC BY 4.0 |
# aitkens
**Aitken's delta-squared series acceleration method**
J. M. F. Tsang (j.m.f.tsang@cantab.net)
---
## Usage
Given an object `xs` that can be turned into a one-dimensional numpy
array, run:
```python
from aitkens import accelerate
accelerate(xs)
```
### Example: Iterates of $\sqrt{2}$
This example, which is given on the Wikipedia article [1], is actually a
poor example since the original iterates converge quadratically, rather
than linearly. The accelerated sequence's terms tend to overshoot the
true values.
```python
from itertools import accumulate
from aitkens import accelerate
iterates = list(accumulate(
range(5), lambda x, _: 0.5 * (x + 2/x), initial=1
))
acc = accelerate(iterates)
```
## References
1. https://en.wikipedia.org/wiki/Aitken%27s_delta-squared_process
## Licence
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/">
<img alt="Creative Commons License" style="border-width:0"
src="https://i.creativecommons.org/l/by/4.0/88x31.png"/>
</a><br>
This work is licensed under a
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/">
Creative Commons Attribution 4.0 International License</a>.
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| - | hypothesis |
نحوه نصب
نصب پکیج whl aitkens-0.1.0:
pip install aitkens-0.1.0.whl
نصب پکیج tar.gz aitkens-0.1.0:
pip install aitkens-0.1.0.tar.gz