0% found this document useful (0 votes)
62 views2 pages

General Assignment

This document contains an assignment for an Applied Mathematics course with 4 questions. Each question provides a MATLAB coding problem and asks students to write code to solve problems related to calculating maximum values of functions, comparing salaries of two people with annual raises, and plotting graph data with lines and symbols at intervals. Students are asked to report specific values or numbers of symbols from running their MATLAB code to solve each problem.

Uploaded by

Vishwajeet Satav
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)
62 views2 pages

General Assignment

This document contains an assignment for an Applied Mathematics course with 4 questions. Each question provides a MATLAB coding problem and asks students to write code to solve problems related to calculating maximum values of functions, comparing salaries of two people with annual raises, and plotting graph data with lines and symbols at intervals. Students are asked to report specific values or numbers of symbols from running their MATLAB code to solve each problem.

Uploaded by

Vishwajeet Satav
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/ 2

Format No.: MITAOE/ACAD/INST/18/A Rev.No.: 1.1 Rev.

Date:02/01/2020

ASSIGNMENT
( An Autonomous Institute Affiliated to SPPU) ACADEMIC YEAR 2021-22
Alandi (D), Pune – 412105 SEM / TRI III
SCHOOL OF MECHANICAL & CIVIL CLASS &
SYBTECH –B2
ENGG. DIVISION / BLOCK

APPLIED MATHEMATICS
COURSE ASSIGNMENT NO. 4

COURSE
PRITI SHINDE DATE 19-12-21
INSTRUCTOR

Que. CO
Question Description Marks
No. No.

For 𝒙 in the range 𝒙 = [𝟎: 𝟎. 𝟏: 𝟏],


Calculate 𝒇(𝒙) = 𝒙𝒆 𝟐𝒙
1
Write a MATLAB code to report the value of 𝒙 at 5 6
which 𝒇(𝒙)is maximum.

( Report the value of 𝑥 for which the above function


value is the highest)
Two friends A and B start with initial salaries of 1 unit
and 1.25 unit, respectively. At the end of each year, they
get a raise of 6% and 2% respectively. Write a MATLAB
code that uses either a for or while loop to calculate
annual salaries of the two until the year when A’s
salary exceeds that of B’s. Report the value of the
2 earliest year n when A’s salary exceeds B’s. 5 6
When the program ends, A and B should be a n-
dimensional vectors, containing their salaries in the
respective years.

(Report the value of n for which the salary of A first


exceeds that of B.)
Two friends A and B start with initial salaries of 1 unit
and 1.25 unit, respectively. At the end of each year, they
3 get a raise of 6% and 2% respectively. Write a MATLAB 5 6
code that uses either a for or while loop to calculate
annual salaries of the two until the year when A’s

1
Format No.: MITAOE/ACAD/INST/18/A Rev.No.: 1.1 Rev.Date:02/01/2020

salary exceeds that of B’s. Report the value of the


earliest year n when A’s salary exceeds B’s.
W hen the program ends, A and B should be a n-
dimensional vectors, containing their salaries in the
respective years.
(Report the value of n for which the salary of A first
exceeds that of B.)
Define vector t=[0:0.04:4];. Define vertical location of
the ball using equation𝑦(𝑡) = 𝑣 𝑡 − 0.5 𝑔𝑡 .The values
to use are 𝑣 = 20 and g = 9.8. Both t and y are 101-
dimensional vectors.
We now wish to do the same plot in a different way.
The command plot(t,y,'-bo') gives blue line with data-
points shown as open circles. Since the data is closely
spaced, this plot looks cluttered.
Instead, plot the same graph such that the blue line is
as before, but the circles are shown only at 0.4 seconds
interval (i.e., line goes through all 101 points, but
symbols are shown for 11 points only). The plot should
look like the one below:

4 5 6

Hint: You will have to plot the same data twice: using '-
b' to plot the line, and using 'bo' to plot the symbols
only.
If you repeat the problem for t=[0:0.04:3]; keeping
everything else the same, how many symbols are
plotted on the figure? Please enter this value in
assessment page
Report the number of symbols on the plot, when
t=[0:0.04:3];
Priti Shinde
19-12-21
Course Instructor
Sign with Date

You might also like