Contact Us!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

| Download

Jupyter notebook ENSP-338-HW-01-assigned/ENSP-338-HW-01-Handout.ipynb

Views: 51
Kernel: Anaconda (Python 3)

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.

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
0.099833416646828155

Question 1

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

Hint: this should not be negative.

A1 = 4.33 #put your answer here

Question 2

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

A2 = 0.375 # put your answer here

Question 3

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

A3 = 6.67 # put your answer here

Question 4

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

A4 = 0.82 # assign your answer to the variable A1 A4 # write out the contents of the variable A1
0

Table

Enter a table with some new values here:

columnvalue
one2
dos3
ElectricalEnergy

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