Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need a PYTHON for problem 3.2 3.2 Finite Difference Method for ODES You are required to implement a MATLAB / Octave function or Python definition
Need a PYTHON for problem 3.2
3.2 Finite Difference Method for ODES You are required to implement a MATLAB / Octave function or Python definition to solve ODES using finite difference method. If you use MATLAB/Octave The, the function should have the following declaration: function [x, u] = fdode( a, b, n, f, alpha, beta ) And for Python: def fdode( a, b, n, f, alpha, beta ): Where a and b are the extrema, n is the number of sub-intervals, f is the function on the RHS. alpha and beta are the left and right boundary condition values, respectively. 3 EG6160 Computer Modelling and Techniques 2020/2021 Coursework Portfolio 1 3.2.1 Verification Use the function/definition you developed for solving ODEs using Finite difference method to solve the following problem. A cable of negligible weight is put across the tops of the two pylons of 50 m at positions Om and 60 m. Five weights of 1.5 kg are attached to the wire at 10 m apart. Subdividing the interval [0,60) into 6 subintervals, compute the shape of the wire under the action of gravity using the model -5 0"(x) = f(x) where u is the displacement of the cableStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started