semvec/pypi-packages huggingface dataset:
newtonpy 0.1.0
A package to solve nonlinear equations
License: MIT
Requires Python: >=3.8,<4.0

# NewtonPy

A package to solve nonlinear equations by newtonpy–Raphson method

## Exemple

### One variable

The function:

![Equation 1](docs/eq1.png)


The Jacobian of function:

![Equation 2](docs/eq2.png)

``` python
import newtonpy
import numpy as np

(converged, error, solution) = newtonpy.solve(
    lambda x: x ** 2,
    lambda x: np.array([2 * x]),
    x0=np.array([1.2]),
    tol=0.001,
    maxiter=100,
)
print(solution)
```

### Multivariable

The function:

![Equation 3](docs/eq3.png)

The Jacobian of function:

![Equation 4](docs/eq4.png)


``` python
import newtonpy
import numpy as np

(converged, error, solution) = newtonpy.solve(
    lambda x: np.array([x[0] ** 2 + x[1] ** 2, 2 * x[1]]),
    lambda x: np.array([[2 * x[0], 2 * x[1]], [0, 2]]),
    x0=np.array([1, 1]),
    tol=1e-3,
    maxiter=10,
    verbose=True,
)
print(solution)
```


## Documentation

``` python
import newtonpy
help(newtonpy)
```


## License and Copyright
 
MIT License

Copyright (c) 2020 Felipe M. S. Monteiro (<fmarkson@outlook.com>)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

---
infoupgraders 0.0.5
This is a very simple catculator that takes two numbers and either adds, subtracts, multiples, or divides them.
License: MIT
Keywords: calculator

This is a very simple catculator that takes two numbers and either adds, subtracts, multiples, or divides them.

Change Log
==========

0.0.1 (7/20/2020)
-----------------
- First Release

0.0.2 (7/20/2020)
-----------------
- Fixed wheels

0.0.3 (7/20/2020)
-----------------
- Fixed pip package (attempt)