Академический Документы
Профессиональный Документы
Культура Документы
Instructions
Welcome to your first Lab Assignment. The purpose of this assignment is to assess your knowledge of the
basics of Mathematica. Please refer to Lab 1 Introduction if you have problems with any of the questions.
Here are some things to remember as you complete this first assignment:
1. Save the notebook to your computer right away, and save your work often.
2. When you have finished all the exercises, close any unnecessary cells and save as a PDF.
3. Upload the PDF on Canvas.
4. Do not delete this notebook. Save all your work until after the semester is over and your final grade has
been issued.
1
2
for x.
Cos@xD
1
2
SolveBCos@xD
1
2
, 8x<F
p
3
p
3
b) Verify the result by calculating the cosine of your solution from part a, i.e. calculate Cos@answerD. If you
get multiple answers, choose one to test.
Lab 1 Assignment.nb
1
2
c) Find the numerical value of cosH2L. Express your answer in decimal form.
-0.41614683654714238699756822950076218976600077107554
1
2
-a -
- 4 + a2
>, :x
1
2
-a +
- 4 + a2
>>
::x
1
4
I- 1 -
15 M>, :x
1
4
I- 1 +
15 M>>
c) Use the documentation center to research the command Log. Directly below this cell, create a math
input cell that calculates the numerical value of the natural log of 3. Present your answer as a decimal.
Log@3D
N@Log@3DD
1.09861
Lab 1 Assignment.nb
N@Log@3DD
1.09861
Sin@2D
N@Sin@2DD
0.909297
0.5
-2
-1
-0.5
-1.0
Question 5: Visualizations
a) Define f to be the function x 2 - 4 x - 1. Plot the function f HxL, f HxL + 2, and f HxL + 4 from x = -2 to x = 2
and show all three together using the Show[ ] command. Note, to see all the functions properly you will need
to use the PlotRange option for the Show command. Refer to the Documentation Center if you need help
with this option.
Lab 1 Assignment.nb
b) Create a text cell directly below this cell and describe what the plot of f @xD + b would look like if b was
some positive number.
f - 1 - 4 x + x2
Plot@8x, x + 2, x + 4<, 8x, - 2, 2<D
-2
-1
-2