ENSP 338 Homework 1

This is a warmup to get you used to using the notebook for calculations.

In this homework, you will get acquainted with the Jupyter Notebook, which we will be using extensively in this class. You will need to sign up on SageMathCloud and pay the fee for this semester to use the tool. If you find yourself stuck, please read the computing tutorial.

In [1]:
from numpy import sin, cos, pi
#this import allows you to use trigonomic functions for this notebook
#example:
sin(0.1) # note that computers expect radians, not degrees
Out[1]:
0.099833416646828155

Question 1

If $\phi$ equals 30 degrees and $a$ equals 10, what is the value of $$ a\sin\phi\cos\phi $$

Hint: this should not be negative.

In [9]:
A1 = 4.33 #put your answer here

Question 2

If $f = 60$, $t= 1$ and $\phi = 0.785$ radians, what is the value of $$ sin(2\pi f t + \phi) $$

In [4]:
A2 = 0.375 # put your answer here

Question 3

If $r_1 = 10$ and $r_2 = 20$ what is the value of $$ \left(\frac{1}{r_1} + \frac{1}{r_2}\right)^{-1} $$

In [5]:
A3 = 6.67 # put your answer here

Question 4

If $r = 0.02$ and $n = 10$, what is the value of $$ \frac{1}{(1 + r)^n} $$

In [23]:
A4 = 0.82 # assign your answer to the variable A1
A4 # write out the contents of the variable A1
Out[23]:
0

Table

Enter a table with some new values here:

column value
one 2
dos 3
Electrical Energy

Homework Image

Replace the image below with one of your choosing. You will need to upload your own image file, choose a name, and change the link below.

https://joseggonzalez.files.wordpress.com/2013/06/bad-luck-brian.jpg

In [ ]: