Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Giới thiệu
Đăng ký
Đăng nhập
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
Thông tin
Điều khoản sử dụng
Quy định bảo mật
Quy chế hoạt động
Chính sách bản quyền
Giới thiệu
Đăng ký
Đăng nhập
0
Trang chủ
Công Nghệ Thông Tin
Kỹ thuật lập trình
Numerical Methods in Engineering with Python Phần 8
Đang chuẩn bị liên kết để tải về tài liệu:
Numerical Methods in Engineering with Python Phần 8
Ðông Sơn
73
44
pdf
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Python 3, còn gọi là Python 3000 hoặc Py3K: Dòng 3.x sẽ không hoàn toàn tương thích với dòng 2.x, tuy vậy có công cụ hỗ trợ chuyển đổi từ các phiên bản 2.x sang 3.x. Nguyên tắc chủ đạo để phát triển Python 3.x là "bỏ cách làm việc cũ nhằm hạn chế trùng lặp về mặt chức năng của Python". | 297 8.2 Shooting Method EXAMPLE 8.4 The displacement v of the simply supported beam can be obtained by solving the boundary value problem dir 04 v d2 0atx 0andx L dx4 EIL dx2 where EI is the bending rigidity. Determine by numerical integration the slopes at the two ends and the displacement at mid-span. Solution Introducing the dimensionless variables x L EI y wLv transforms the problem to d4y d2y ệ y -X- 0 at ệ 0 and 1 dệ4 5 ỵ dị2 The equivalent first-order equations and the boundary conditions are the prime denotes d d Ệ The program listed next is similar to the one in Example 8.1. With appropriate changes in functions F x y initCond u and r u the program can solve boundary value problems of any order greater than 2. For the problem at hand we chose the Bulirsch-Stoer algorithm to do the integration because it gives us control over the printout we need y precisely at mid-span . The nonadaptive Runge-Kutta method could also be used here but we would have to guess a suitable step size h. As the differential equation is linear the solution requires only one iteration with the Newton-Raphson method. In this case the initial values U1 dy dỆ x 0and u2 d3y dỆ3 x 0 are irrelevant convergence always occurs in one iteration. usr bin python example8_4 from numpy import zeros array from bulStoer import 298 Two-Point Boundary Value Problems from newtonRaphson2 import from printSoln import def initCond u Initial values of y y y y use u if unknown return array 0.0 u 0 0.0 u 1 def r u Boundary condition residuals--see Eq. 8.7 r zeros len u X Y bulStoer F xStart initCond u xStop H y Y len Y - 1 r 0 y 0 r 1 y 2 return r def F x y First-order differential equations F zeros 4 F 0 y 1 F 1 y 2 F 2 y 3 F 3 x return F xStart 0.0 Start of integration xStop 1.0 End of integration u array 0.0 1.0 Initial guess for u H 0.5 Printout increment freq 1 Printout frequency u newtonRaphson2 r u 1.0e-4 X Y bulStoer F xStart initCond u xStop H printSoln X Y freq raw_input nPress return to exit Here
TÀI LIỆU LIÊN QUAN
Ebook Python for computational science and engineering: Part 2
Numerical Methods in Engineering with Python Phần 1
Numerical Methods in Engineering with Python Phần 2
Numerical Methods in Engineering with Python Phần 3
Numerical Methods in Engineering with Python Phần 4
Numerical Methods in Engineering with Python Phần 5
Numerical Methods in Engineering with Python Phần 6
Numerical Methods in Engineering with Python Phần 7
Numerical Methods in Engineering with Python Phần 8
Numerical Methods in Engineering with Python Phần 9
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.