(20 points) Consider a generic 3-node triangle, numbered according to the figure in the
class notes. Write a series of subroutines in a program language of your choice (Matlab,
Python, C, ...) that does the following. Note: these routines may be very short. You
should provide comments and also use names for variables that are suggestive, i.e. use
good programming habits.
(iv) Verify via hand calculations (i.e. the final formula for B in terms of x,y given in
class) that your B matrix is correct.