1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{
"metadata": {
"name": "",
"signature": "sha256:7315f4cd0dbe1ea8c121564011c9ce9945618f308024d617157c5ed6076bc7d9"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter15:Composite Materials and Ceramics"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex15.1:pg-299"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#Example 15.1 : colume ratio of aluminium and boron\n",
" \n",
"import numpy.linalg as lin\n",
"yal=715;# in GN/,**2\n",
"yfe=210;# in GN/,**2\n",
"yb=440;# in GN/,**2\n",
"A=numpy.array([[71, 71],[71, 440]]);#\n",
"B=numpy.array([71,210]);#\n",
"X=lin.solve(A,B)\n",
"print round(X[0],3),\"is volume ratio of aluminium \"\n",
"print round(X[1],3),\"is volume ratio of boron \"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"0.623 is volume ratio of aluminium \n",
"0.377 is volume ratio of boron \n"
]
}
],
"prompt_number": 5
}
],
"metadata": {}
}
]
}
|