tailieunhanh - Numerical Methods in Engineering with Python Phần 3

Theo đánh giá của Eric S. Raymond, Python là ngôn ngữ có hình thức rất sáng sủa, cấu trúc rõ ràng, thuận tiện cho người mới học lập trình. Cấu trúc của Python còn cho phép người sử dụng viết mã lệnh với số lần gõ phím tối thiểu, như nhận định của chính Guido van Rossum trong một bài phỏng vấn ông. | 77 Pivoting 16. The force formulation of the symmetric truss shown results in the joint equilibrium equations c 1 0 0 0 P1 0 0 s 0 0 1 P2 0 0 0 2s 0 0 P3 1 0 c c 1 0 P4 0 0 s s 0 0 _P5_ 0 where s sin 0 c cos 0 and Pi are the unknown forces. Write a program that computes the forces given the angle 0. Run the program with 0 53 . 17. The electrical network shown can be viewed as consisting of three loops. Applying Kirchoff s law voltage drops voltage sources to each loop yields the following equations for the loop currents i1 i2 and i3 5i1 15 4 - i3 220 V R i2 Í3 5i2 10i 2 0 20i3 R i3 i2 15 7 3 i1 0 Compute the three loop currents for R 5 10 and 20 . 78 Systems of Linear Algebraic Equations 18. -120 V 120 V 50 Q 30Q 20 Q 25 Q -vwwv 30Q Determine the loop currents i1 to i4 in the electrical network shown. 19. Consider the n simultaneous equations Ax b where n 1 Aij i j 2 bi 2 Aij i 0 1 n - 1 j 0 1 . n - 1 j 0 Clearly the solution is x 1 1 1 . Write a program that solves these equations for any given n pivoting is recommended . Run the program with n 2 3 and 4 and comment on the results. 20. 8m3 s 6m3 s 3 m 3 s 2m3 s c C2 C4 C5 4m3 s 2m3 s I 5m3 s 4m3 s T2m3 s c 15 mg m3 4m3 s c 20 mg m3 The diagram shows five mixing vessels connected by pipes. Water is pumped through the pipes at the steady rates shown on the diagram. The incoming water contains a chemical the amount of which is specified by its concentration c mg m3 . Applying the principle of conservation of mass mass of chemical flowing in mass of chemical flowing out 79 Matrix Inversion to each vessel we obtain the following simultaneous equations for the concentrations Ci within the vessels -8c1 4c2 -80 8c1 - 10C2 2c3 0 6c2 - 11C3 5c4 0 3C3 7c4 4c5 0 2c4 - 4c5 -30 Note that the mass flow rate of the chemical is obtained by multiplying the volume flow rate of the water by the concentration. Verify the equations and determine the concentrations. Four mixing tanks are connected by pipes. The fluid in the .

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.