```python
import numpy as np
import math
import matplotlib.pyplot as plt
import warnings
warnings.filterwarnings("ignore")
import sympy as sp
```


```python
x, x_m, h, s=sp.symbols('x x_m h s')
sp.integrate(h*(1-s)*(s),(s,0,1))
```




    h/6




```python
sp.integrate(h*(s)*(s),(s,0,1))+sp.integrate(h*(-s)*(-s),(s,0,1))+2*sp.integrate(1/h,(s,0,1))+2*sp.integrate(1/h,(s,0,1))
```




    2*h/3 + 4/h




```python
sp.integrate(h*(s)*(1-s),(s,0,1))
```




    h/6




```python
sp.integrate(h*(s)*(s),(s,0,1))+sp.integrate(h*(1-s)*(1-s),(s,0,1))
```




    2*h/3




```python
sp.integrate(h*(s)*3,(s,0,1))+sp.integrate(h*(1-s)*4,(s,0,1))
```




    4*h




```python
sp.integrate(h*(1-s)*3,(s,0,1))
```




    2*h




```python
b=sp.integrate(h*(s)*3,(s,0,1))
```


```python
b
```




    3*h/2



7be28d874bfc02bc69c0b77fe3229d3806b4846a
ipynb
Jupyter Notebook
Chapter 11 - Finite Element Method/Matrix.ipynb
jjcrofts77/Numerical-Analysis-Python
97e4b9274397f969810581ff95f4026f361a56a2
MIT
2019-09-05T21:39:12.000Z
2022-03-26T14:00:25.000Z
Chapter 11 - Finite Element Method/Matrix.ipynb
jjcrofts77/Numerical-Analysis-Python
97e4b9274397f969810581ff95f4026f361a56a2
MIT
Chapter 11 - Finite Element Method/Matrix.ipynb
jjcrofts77/Numerical-Analysis-Python
97e4b9274397f969810581ff95f4026f361a56a2
MIT
2021-06-17T15:34:04.000Z
2022-01-14T14:53:43.000Z
Qwen/Qwen-72B
1. YES
2. YES