```python
# https://colab.research.google.com/github/kassbohm/tm-snippets/blob/master/ipynb/TM_A/TM_2/fem-rod-3-node_1.ipynb

from sympy.physics.units import *
from sympy import *
from numpy import linspace, array

l, E, A, q = var("l, E, A, q")

x = var("x")

S = q*(l-x)
sigma = S/A

pprint("\nu1:")
u1 = 1/E * integrate(sigma, (x, 0, l/2))
tmp = u1
pprint(tmp)

pprint("\nu2:")
u2 = 1/E * integrate(sigma, (x, 0, l))
tmp = u2
pprint(tmp)

# u1:
#    2
# 3⋅l ⋅q
# ──────
# 8⋅A⋅E
#
# u2:
#   2
#  l ⋅q
# ─────
# 2⋅A⋅E

```

59f7ffb296c235a0262da09a6e8d399a432f9f39
ipynb
Jupyter Notebook
ipynb/TM_A/TM_2/fem-rod-3-node_1.ipynb
kassbohm/tm-snippets
5e0621ba2470116e54643b740d1b68b9f28bff12
MIT
ipynb/TM_A/TM_2/fem-rod-3-node_1.ipynb
kassbohm/tm-snippets
5e0621ba2470116e54643b740d1b68b9f28bff12
MIT
ipynb/TM_A/TM_2/fem-rod-3-node_1.ipynb
kassbohm/tm-snippets
5e0621ba2470116e54643b740d1b68b9f28bff12
MIT
Qwen/Qwen-72B
1. YES
2. YES