```python
import sympy as sym
from sympy.plotting import plot
from sympy import simplify

x = sym.Symbol('x')
ex = (x**2-2*x-6) / (x-1)
a = sym.diff(ex,x)
# print(a)
# plot(a)
result = a.subs(x,0)
print("답", result)
simplify(a)

```

    답 8





$\displaystyle \frac{x^{2} - 2 x + 8}{x^{2} - 2 x + 1}$



답 8


```python
n = 0.0001
r = ((n**2-2*n-6) / (n - 1)  - 6) / n
print(r)
```

    8.000700070001088



```python

```

ipynb
a2e66a525d3d585ddc6073c4dba9b23d5b462b28
Jupyter Notebook
d248b0375a62573a11f4ba1216172888ce6fd65a
MIT
AramMoon/Math
2021_Math/m23.ipynb
d248b0375a62573a11f4ba1216172888ce6fd65a
MIT
AramMoon/Math
2021_Math/m23.ipynb
d248b0375a62573a11f4ba1216172888ce6fd65a
MIT
AramMoon/Math
2021_Math/m23.ipynb