```
%matplotlib inline
from matplotlib.pyplot import style, plot
```


```
from numpy import exp, linspace, zeros
```


```
from scipy.optimize import fsolve
```


```
a = 1
b = -2
h = 1
f = lambda s: s - a - b*exp(-h*s)
```


```
t = linspace(0, 10, 100)
```


```
plot(t, f(t))
```


```
raices = fsolve(f, -10.0)
raices
```




    array([ 0.69339871])




```
plot(raices, zeros(raices.size), "o")
```


```
f = lambda s: s**2 + 1
```


```
from sympy import var, init_printing, exp, roots
init_printing()
```


```
var("s")
```


```
f = s - 1 + 2*exp(-1*s)
f
```


```
def corta(xs, e):
    if len(xs) > 1:
        for i, x in enumerate(xs[:-1]):
            if abs(xs[i+1] - x) > e:
                return [xs[:i+1], xs[i+1:]]
    return xs

def separa_grupos(xs, e):
    separados = corta(xs, e)
    if len(separados) > 1:
        x, y = separa_grupos(separados[1], e)
        return separados[0], x, y
    return xs
```

5ecf43660b02d121e24c29f76847948bc1c57c38
ipynb
Jupyter Notebook
IPythonNotebooks/Sistemas con retardo en la entrada/Prueba.ipynb
robblack007/DCA
0ea5f8b613e2dabe1127b857c7bfe9be64c52d20
MIT
IPythonNotebooks/Sistemas con retardo en la entrada/Prueba.ipynb
robblack007/DCA
0ea5f8b613e2dabe1127b857c7bfe9be64c52d20
MIT
IPythonNotebooks/Sistemas con retardo en la entrada/Prueba.ipynb
robblack007/DCA
0ea5f8b613e2dabe1127b857c7bfe9be64c52d20
MIT
2021-03-20T12:44:13.000Z
2021-03-20T12:44:13.000Z
Qwen/Qwen-72B
1. YES
2. YES