0% found this document useful (0 votes)
2 views1 page

Tasks F24

The document outlines a MATLAB/OCTAVE project for Calculus II due on November 30, 2024, consisting of two main tasks. Task 1 involves calculating the area between two curves defined by functions based on the student's ID digits, while Task 2 focuses on analyzing a function related to solids of revolution. Students are required to perform various calculations and plots using MATLAB/OCTAVE functions throughout the project.

Uploaded by

hmrgb4xzxy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Tasks F24

The document outlines a MATLAB/OCTAVE project for Calculus II due on November 30, 2024, consisting of two main tasks. Task 1 involves calculating the area between two curves defined by functions based on the student's ID digits, while Task 2 focuses on analyzing a function related to solids of revolution. Students are required to perform various calculations and plots using MATLAB/OCTAVE functions throughout the project.

Uploaded by

hmrgb4xzxy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

MATLAB/OCTAVE Project Calculus II

Fall 2024

Please complete the following tasks and submit your results in one file using the answer template.

The deadline is Saturday, November 30, 2024.

Task 1. Area between two curves

Consider the graphs of the functions 𝑓(𝑥) = 𝑚𝑛 − 𝑥 and 𝑔(𝑥) = 𝑥 − 2𝑚 where 𝑚 and 𝑛
are the maximum and mean values of the digits in your student-ID number.

a) Create a vector v whose elements are the digits of your student-ID number.
b) Create a variable m and assign the maximum digit in v to it.
c) Create a variable n and assign the mean value of the digits in v to it.
d) Define the function f(𝑥) and g(𝑥) above as anonymous functions.
e) Plot the graphs of f(𝑥) and g(𝑥) on the same figure using the MATLAB/OCTAVE
function ezplot in the interval [-10,10].
f) Find the exact values of the 𝑥-coordinates of the intersection points between the two
graphs using the MATLAB/OCTAVE function solve.
g) Find the area bounded by the two graphs.

Task 2. Solids of revolution


Consider the graphs of the function
ℎ(𝑥) = 𝑚𝑛 + sin 𝑥 ,

where 𝑚 and 𝑛 are the maximum and mean values of the digits in your student-ID number.

a) Define the function h(𝑥) as an anonymous function.


b) Plot the graph of the function in the interval [−𝜋, 𝜋] using the MATLAB/OCTAVE
function ezplot.
c) Find the derivative of h(𝑥) using the MATLAB/OCTAVE function diff.

d) Evaluate the volume of the solid of revolution generated by revolving the graph of
h(𝑥) around the 𝑥-axis between 0 and 2𝜋.

You might also like