Final-Exam-MAE-2360-Fall-2020
docx
keyboard_arrow_up
School
University of Texas, Arlington *
*We aren’t endorsed by this school
Course
2360
Subject
Aerospace Engineering
Date
Dec 6, 2023
Type
docx
Pages
6
Uploaded by MajorWillpowerBeaver8
Final of MAE 2360-001
Note
:
Exam period: 11:00 am to 11:50am, Wednesday, 12/16 for all students.
There are five problems, and each is worth 20 points.
For each problem,
directly make modifications on the given program,
highlight your changes with a color, such as
example.
The modified Octave program is your answer. No need re-writing the Octave
program. No need running the modified Octave program. No need providing the output
of the modified Octave program.
Open-book exam. A student can use and refer to anything during the exam.
During the exam, not allowed to discuss or share information with anybody else.
Please join the new conference to be opened on the Canvas website of MAE 2360
-002 or
-003 (depending on which lab session that you are enrolled in) and turn on the camera of
your computer, so we can see you on the conference during the exam period.
Instruction
for submission, which is the same as the way of submitting HWs
Go on Canvas, select course MAE 2360-
002 or
-003 (depending on which lab session
that you are enrolled in), then click on assignments and select Final Exam to be submitted
and upload the document.
The format in which the mid-term paper is to be submitted is only
docx and doc.
The time period given for the submission is 11am-12 noon, Wednesday, 12/16. The link
for submission of the mid-term paper will disappear at 12 noon and will be considered as
“
not submitted”.
If you get a problem to submit online, please email me immediately at
chengluo@uta.edu
to let me know the issue by
12 noon (the submission time through email is determined
by the time marked on your email), with your exam paper attached to your email as the
evidence that you have finished the exam. As evidence, you can also use your
cell phone
to
take pictures of
your answers, and email to me.
Three attempts will be allowed for the submission of the mid-term paper.
Please do not copy others’ works, plagiarism check will be deployed to catch such an
activity.
1
1.
Five of the following statements do not work. Fix them (20 points, and 4 points for fixing
a statement that does not work).
Use a color to highlight the places where you have made
changes.
x=[1, 2, 3]
y=[4,5,6]
z=x
. * y
z=x-y
z=x+y
z = x
./ y
z=x
.^
-2
z=1
./x.^2
z=
x
.
^2
2
2.
The Octave program below plots y
1
=sin(x) and y
2
=sin(2x) in the same graph.
Please modify this program to plot y
1
=exp(x) and y
2
=exp(2x), according to the following four
requirements:
i)
plot the two curves with red and yellow colors, respectively,
ii)
with title of “three new curves”, whose font size is 20,
iii)
with xlabel of “time”, whose font size is 30, and
iv)
with ylabel of “speed”, whose font size is 40.
To meet these requirements, additional statements may have to be added. Use a color to highlight
in the program the places where you have made changes.
x=[0: 0.01:
1];
y1=
exp(x);
y2=
exp(2*x);
plot(x, y1,’r’, x, y2,’y’);
title(‘three new curves’, ‘FontSize’,20)
xlabel(‘time’, ‘FontSize’, 30)
ylabel(‘speed’,’FontSize’, 40)
3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
3. The following Octave program solves
dy/dx=0 with y(3)=3.0.
Please modify this program to solve the following ODE. Use a color to highlight in the program
the places where you have made changes.
dy/dx=sin(x), with y(0)= -1.
function ydot=f
2 (y,x);
ydot=
sin(x);
end;
x=[
0:0.1:
4];
y=lsode('f2'
,-1.0,x);
plot(x,y);
4
4. The following Octave program solves
dy
1
/dx=y
2
,
dy
2
/dx=1,
with y
1
(0)=0 and y
2
(0)=1.
Please modify this program to solve the following ODEs:
dy
1
/dx= y
1
+y
2
,
dy
2
/dx= y
2
,
with y
1
(1)=3 and y
2
(1)=4.
Use a color to highlight in the program the places where you have made changes.
function ydot = f1(y,x)
ydot(1) =
y(1)+y(2);
ydot(2) =
4;
end;
x=[
1:0.1:2];
y = lsode ("f1", [
3; 4],x);
plot(x,y);
5.
The Octave program below is to numerically integrate
Please modify this program to numerically integrate
5
ó
õ
1
0
4
1+
x
2
dx.
ó
õ
3
2
(
x
2
+2x+1)
dx
.
Use a color to highlight in the program the places where you have made changes.
function y=f1(x)
y=(
x.^2)+2*x+1;
end;
quadv (@f1,
2,3)
6
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help