Docsity

Mathematica Notebook Exercises for Calculus 3, Lab Reports of Mathematics

Toggle sidebar
bg1
APPM 2450 - Calculus 3 Computer Lab Lab Exercise 1
APPM 2450 Calculus 3 Computer Lab
Lab Exercise 1
Create a Mathematica notebook that does all of the following. Feel free to ask your neighbor or your lab
instructor for help if you get stuck. Items with a àare required, items with a Pare optional.
àWhat is eto 5 decimal places? What is πto 30 decimal places? What is sin(1) to 10 decimal places (remember
to use square brackets and a capital ‘S’).
àDefine the function f(x) = a∗x2+b∗x+c. Remember, when defining functions to use an underscore after
the xon the left hand side, but not the right hand side.
àEvaluate f(0), f(1), f(−1).
àNow, insert a text cell at the very top of the notebook. Type in your name (Format, style, text in the menu).)
àDefine x1 = −b+√b2−4ac
2a, remember to use a *and parenthesis when needed.
àType f[x1]. What does Mathematica return? What should it return? Use Simplify to get a better answer.
àDefine a= 1, b=−1, and c=−6.
àWhat is f(x) now?
àGet help for the command Factor.
àUse the command Factor to factor f(x).
àClear the values of a,b, and c,do not restart the kernel or use Quit.
àDefine the vectors u= 2i+ 7j+k,v= 3i+j+ 4k.
àCalculate u·v,|u|, and |v|.
PUse the relationship A·B=|A||B|cos(θ), where θis the angle between the vectors Aand Bto calculate the
angle between uand v. Note that in Mathematica to calculate cos(x)−1you should use ArcCos[x].
PDefine the function g(x) = x3−3x2−x+ 3.
PFactor g(x).
PDefine h(x) = 1/g(x) with the command h[x_]=1/g[x]
PUse Apart to find the partial fraction decomposition of h(x).

Partial preview of the text

Download Mathematica Notebook Exercises for Calculus 3 and more Lab Reports Mathematics in PDF only on Docsity!

APPM 2450 - Calculus 3 Computer Lab Lab Exercise 1

APPM 2450 Calculus 3 Computer Lab Lab Exercise 1

Create a Mathematica notebook that does all of the following. Feel free to ask your neighbor or your lab instructor for help if you get stuck. Items with a à are required, items with a P are optional.

à What is e to 5 decimal places? What is π to 30 decimal places? What is sin(1) to 10 decimal places (remember to use square brackets and a capital ‘S’).

à Define the function f (x) = a ∗ x^2 + b ∗ x + c. Remember, when defining functions to use an underscore after the x on the left hand side, but not the right hand side.

à Evaluate f (0), f (1), f (−1).

à Now, insert a text cell at the very top of the notebook. Type in your name (Format, style, text in the menu).)

à Define x1 =

−b +

b^2 − 4 ac 2 a

, remember to use a * and parenthesis when needed.

à Type f[x1]. What does Mathematica return? What should it return? Use Simplify to get a better answer.

à Define a = 1, b = −1, and c = −6.

à What is f (x) now?

à Get help for the command Factor.

à Use the command Factor to factor f (x).

à Clear the values of a, b, and c, do not restart the kernel or use Quit.

à Define the vectors u = 2i + 7j + k, v = 3i + j + 4k.

à Calculate u · v, |u|, and |v|.

P Use the relationship A · B = |A||B| cos(θ), where θ is the angle between the vectors A and B to calculate the angle between u and v. Note that in Mathematica to calculate cos(x)−^1 you should use ArcCos[x].

P Define the function g(x) = x^3 − 3 x^2 − x + 3.

P Factor g(x).

P Define h(x) = 1/g(x) with the command h[x_]=1/g[x]

P Use Apart to find the partial fraction decomposition of h(x).