```python
from sympy import *
init_printing(use_unicode = True)
x = symbols('x')
```


```python
t,fn,fn1,fn2,h,tn,tn1,tn2 = symbols('t fn fn1 fn2 h tn tn1 tn2') #A segundo orden
```


```python
tn1 = tn - h
tn2 = tn - 2*h
simplify(integrate(fn2*((t-tn1)*(t-tn)/(tn2-tn)/(tn2-tn1)) + fn1*((t-tn)*(t-tn2)/(tn1-tn)/(tn1-tn2)) + fn*((t-tn1)*(t-tn2)/(tn-tn1)/(tn-tn2)),(t,tn,tn+h)))
```


```python
t,fn,fn1,fn2,fn3,h,tn,tn1,tn2,tn3 = symbols('t fn fn1 fn2 fn3 h tn tn1 tn2 tn3') #A tercer orden
```


```python
tn1 = tn - h
tn2 = tn - 2*h
tn3 = tn - 3*h
simplify(integrate(  fn3*((t-tn)*(t-tn1)*(t-tn2)/(tn3-tn)/(tn3-tn1)/(tn3-tn2)) 
                   + fn2*((t-tn)*(t-tn1)*(t-tn3)/(tn2-tn)/(tn2-tn1)/(tn2-tn3)) 
                   + fn1*((t-tn)*(t-tn2)*(t-tn3)/(tn1-tn)/(tn1-tn2)/(tn1-tn3)) 
                   + fn*((t-tn1)*(t-tn2)*(t-tn3)/(tn-tn1)/(tn-tn2)/(tn-tn3)),(t,tn,tn+h)))
```


```python

```

f0cd09e9eb1673894f3f8cd937dbcb660f3944a5
ipynb
Jupyter Notebook
data/notebooks/nb_1054080.ipynb
DavidRV00/notebook-analysis
01a88cdd5bfaedaafe4bdaa413244eff7f9d0ade
Apache-2.0
data/notebooks/nb_1054080.ipynb
DavidRV00/notebook-analysis
01a88cdd5bfaedaafe4bdaa413244eff7f9d0ade
Apache-2.0
data/notebooks/nb_1054080.ipynb
DavidRV00/notebook-analysis
01a88cdd5bfaedaafe4bdaa413244eff7f9d0ade
Apache-2.0
Qwen/Qwen-72B
1. YES
2. YES