Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/tBuLi/symfit
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Roelfs committed Jan 2, 2016
2 parents 0fd9b7e + 5c71c0c commit f94a99e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ from symfit import parameters, Maximize, Equality, GreaterThan
x, y = parameters('x, y')
model = 2 * x * y + 2 * x - x**2 - 2 * y**2
constraints = [
Equality(x**3 - y, 0),
GreaterThan(y - 1, 0),
Equality(x**3, y),
GreaterThan(y, 1),
]

fit = Maximize(model, constraints=constraints)
Expand Down Expand Up @@ -46,6 +46,6 @@ plt.plot(xdata, y)
plt.show()
```

<img src="http://symfit.readthedocs.org/en/latest/_images/linear_model_fit.png" alt="Linear Fit" width="200px">
<img src="http://symfit.readthedocs.org/en/latest/_images/linear_model_fit.png" alt="Linear Fit" width="600px">

For more, check the docs at http://symfit.readthedocs.org.
For more, check the docs at http://symfit.readthedocs.org.

0 comments on commit f94a99e

Please sign in to comment.