# Function returning the BMI of input vectors m and l
m=np.array(weight)# Create arrays from inputs
l=np.array(length)
# Calculate all BMI's simultaniously
BMI=np.divide(m,l**2)
# Or just
BMI=m/l**2
returnBMI
m_example=[60,72,57,90,95,72]
l_example=[1.75,1.80,1.65,1.90,1.74,1.91]
print("The given weights and lengths result in BMI's: \n{}".format(BMI(m_example,l_example)))
```
%%%% Output: stream
The given weights and lengths result in BMI's:
[19.59 22.22 20.94 24.93 31.38 19.74]
%% Cell type:markdown id: tags:
# Solution to Problem 3 - Matrix Multiplication
We will apply a couple of transformations to manipulate the $x$ and $y$ coordinates of the following points which have three dimensional components of $x$, $y$ and ascii character index similar to the way an image pixel has 3 dimensional components of $x$, $y$, and frequency (or intensity).