#Example 15.1 : colume ratio of aluminium and boron
import numpy.linalg as lin
yal=715;# in GN/,**2
yfe=210;# in GN/,**2
yb=440;# in GN/,**2
A=numpy.array([[71, 71],[71, 440]]);#
B=numpy.array([71,210]);#
X=lin.solve(A,B)
print round(X[0],3),"is volume ratio of aluminium "
print round(X[1],3),"is volume ratio of boron "