Question: ECIV 2 0 1 CE - 0 5 : Draw the flowchart to the right of the following codes: import numpy as np import matplotlib.pyplot
ECIV CE: Draw the flowchart to the right of the following codes:
import numpy as np
import matplotlib.pyplot as pltdef calculateshearandbending:L floatinputEnter the length of the beam in meters:
w floatinputEnter the uniformly distributed load inx nplinspace LM wxL xpltfigurefigsize
pltsubplot
pltplotx v label'Shear Force V
pltaxhline color'black', linewidth
pltaxvline color'black', linewidth
pltxlabelPosition along the beam m
pltylabelShear Force kN
plttitleShear Force Diagram'
pltlegend
pltgridTruepltsubplot
pltplotx M label'Bending Moment M color'orange'
pltaxhline color'black', linewidth
pltaxvline color'black', linewidth
pltxlabel Position along the beam m
pltylabelBending Moment kNm
plttitleBending Moment Diagram'
pltlegend
pltgridTrue
plttightlayout
pltshow
# Call the function to execute the calculations and plotting
calculateshearandbending
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
