MA302, Homework #1 (example file)

Lisa Oberbroeckling

Spring 2018

Contents

NOTE: m-files don't view well in Internet Explorer. Use Mozilla Firefox or Safari instead to view these pages.

Using MathJax to make it easier to type-set mathematics on a webpage.

Problem 1

Here is a link to my function file: (shown for example purposes)

quadratic3.m

Problem 2a

The polynomial is: \( f(x) = x^{20} - 2x^3 + \frac{3}{5}x^2 + \sqrt{2} \) (work to get this is shown on paper)

(the above is just an example of how to type the math)

Problem 2b

We will now graph something for the problem.

clc, clear, clf, format
t=linspace(0,4*pi);
x=3*cos(t);
y=4*sin(t);
plot(x,y)
title('Problem 2b')
xlabel('x')
ylabel('y')

My initial guess from the graph is: ??

Problem 2c

below would be the MATLAB commands used to find the answer. (I'm just doing a command for example purposes.)

prob2c = sin(pi/3) + 25
prob2c =

   25.8660

Based on above answer, blah blah blah:

Problem 2d

The blah blah answer is: ?? (work shown on paper)

Original m-file

exampleFile.m

URL of published webpage

exampleFile.html

Date/time published

DateTimePublished = datestr(now)
DateTimePublished =

05-Jan-2018 13:57:04