 Numerical Methods Questions

Subject Mathematics Numerical Analysis

Question

Check the file: Questions.pdf

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

Problem 2
The general code is presented below
clear;
clc;
%% Provided expressions
a = 8;
b = 5;
ms=50+(a*10);
g=9.81;
rho=1.091;
r=0.5+(a/10)+(b/20);
A=pi*r^2;
ve=325+(a*10)-(5*b);
CD=0.15;
mp0=100+(5*a)+(2*b);
%% Main code
v=zeros(201,1);
h=zeros(201,1);
count=1; %loop variable
for T=0:0.1:20
% Calculating mp first
N=10001; %number of divisions
t=linspace(0,T,N);
%the mpdot function
if T<=5
mpdot(1,1:numel(t))=20;
else
mpdot(1,1:1+((N-1)/2))=20;
mpdot(1,2+((N-1)/2):numel(t))=0;
end
mp=trapz(t,mpdot); %using the trapz function to calculate mp
v(count+1)=v(count)+(0.1*(-g+((mpdot(numel(mpdot))*ve)/(ms+mp))-(0.5*rho*((v(count))^2)*A*CD/(ms+mp)))); %Eurler's method
h(count+1)=h(count)+0.1*(v(count)); %Euler's method
count=count+1;
end...

This is only a preview of the solution. Please use the purchase button to see the entire solution

Related Homework Solutions

Numerical Analysis \$3.00
Mathematics
Numerical Analysis
Problems
Jacobi
Gauss-Seidel
Formula
Numerical Integration Problems \$88.00
Matlab
Numerical Integration
Defined Functions
Input
Output
Intervals
Trapezoidal Rule
Simpson
Approximation
Integrals
Accuracy
Error Bounds
Computation
Algorithms
Statements
Variables
Numerical Analysis MATLAB Questions \$33.00
Numerical
Analysis
MATLAB
Ordinary
Differential
Equations
Euler
Runge-Kutta
Scheme
Convergance
Numerical Analysis Questions \$60.00
Numerical Analysis
Mathematics
Computer Science
Graphs
Cost Factors
Compressive Stress
Matlab
Optimization
Documents
Cells
Equations
Functions
Variables
Tables
Numerical Analysis Questions \$70.00
Mathematics
Numerical Analysis
Plots
Computer Science
Programming
Errors
Conditional Numbers
Relative Norms
Systems
Accuracy
Polynomials
Approximation
Factors
Codes
Numerical Methods \$50.00
Mathematics
Numerical Methods
Matlab