Skip to content
Permalink
7cb3d1c045
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
77 lines (76 sloc) 5.67 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="generator" content="pandoc" />
<title></title>
<style type="text/css">code{white-space: pre;}</style>
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>
</head>
<body>
<h1 id="homework-1">Homework #1</h1>
<h2 id="due-12417">due 1/24/17</h2>
<ol style="list-style-type: decimal">
<li><p>The first assignment is to fork the course syllabus and assignment.</p>
<ol style="list-style-type: lower-alpha">
<li>Sign into your UConn github account via <a href="https://github.uconn.edu/">github.uconn.edu</a>.</li>
</ol></li>
</ol>
<div class="figure">
<img src="g1.jpg" alt="Step 1" />
<p class="caption">Step 1</p>
</div>
<div class="figure">
<img src="g2.jpg" alt="Step 2" />
<p class="caption">Step 2</p>
</div>
<pre><code>b. Go to
[https://github.uconn.edu/rcc02007/ME3255S2017.git](https://github.uconn.edu/rcc02007/ME3255S2017.git)
and watch the repository.
c. Fork the repository to create your own version of the syllabus and assignments. </code></pre>
<ol start="2" style="list-style-type: decimal">
<li><p>The next assignment is to create your own repository named ‘01_ME3255_repo’.</p>
<ol style="list-style-type: lower-alpha">
<li><p>(if you signed out) Sign into your UConn github account via <a href="https://github.uconn.edu/">github.uconn.edu</a>.</p></li>
<li><p>Follow these steps to create your own repository named <code>01_ME3255_repo</code>:</p>
<ol style="list-style-type: lower-roman">
<li>Click the +-sign and choose ‘New repository’</li>
</ol></li>
</ol></li>
</ol>
<p><img src="g3.jpg" alt="Step 3" /><br />
ii. In the ‘Repository name’ enter ‘01_ME3255_repo’. Add a description. Make it private. Then check the box ‘Initialize this repository with a README’.</p>
<p><img src="g4.jpg" alt="Step 4" /><br />
iii. Now you are in your repo. Click on the README.md file and then click the pencil to edit it.</p>
<p><img src="g5.jpg" alt="Step 5" /><br />
iv. Add a header with a <code>#</code> and type <code># Answer to Homework Question</code>. Under this line answer this question: What do you hope to learn this semester?</p>
<p><img src="g6.jpg" alt="Step 6" /><br />
v. At bottom of page, click ‘Commit changes’.</p>
<p><img src="g7.jpg" alt="Step 7" /><br />
vi. Verify that your README.md file has been updated. Then copy the HTTPS clone URL on the right of the page.</p>
<p><img src="g8.jpg" alt="Step 8" /><br />
vii. Paste this into the Homework #1 Google form reponse. <a href="https://goo.gl/forms/b3YrBuFxZaXTYV5s1" class="uri">https://goo.gl/forms/b3YrBuFxZaXTYV5s1</a></p>
<p><img src="g9.jpg" alt="Step 9" /><br />
viii. Click on the gear for “Settings” then “Collaborators” on the left menu. Add <code>rcc02007</code> (Ryan C. Cooper) and <code>zhs15101</code> (Zhiqiang Shen) as a collaborators.</p>
<ol start="3" style="list-style-type: decimal">
<li><p>Use a script to create a variable called <code>A_66</code>, where every row, column is the product of the two indices from 1 to 6 e.g. A_66(3,2)=6 and A_66(4,4)=16. Calculate the mean and standard deviation of the values in A_66.</p></li>
<li><p>Copy the data in <a href="https://github.uconn.edu/rcc02007/ME3255F2017/blob/master/03_Intro%20to%20matlab-octave/US_energy_by_sector.csv">US_energy_by_sector.csv</a> to a file in you working directory in Matlab/Octave.</p>
<ol style="list-style-type: lower-alpha">
<li><p>Plot the US energy consumption from 1949 to 2016 for “Total Energy Consumed by the Residential Sector” and “Total Energy Consumed by the Transportation Sector” in trillions of Btu’s.</p></li>
<li><p>Plot the cumulative US energy consumption from 1949 to 2016 for “Total Energy Consumed by the Residential Sector” and “Total Energy Consumed by the Transportation Sector” in quintillions of Btu’s (1 quintillion = 10<span class="math inline">\(^6\)</span> trillion). The cumulative energy is the area under the curve in part a from 1949 to a given year.</p></li>
</ol></li>
<li><p>In this part, you will modify the function presented in lecture <code>freefall.m</code>. In lecture, the function required an input of <code>N</code> to divide the 12 second solution into N-steps. Here, modify the input so that you can specify two inputs, step size-<code>h</code>, and timespan-<code>timespan</code>.</p>
<ol style="list-style-type: lower-alpha">
<li><p>Plot a comparison between calculated velocities v(t) for timesteps of h=0.1, 1, and 5 sec from 0 to 30 seconds.</p></li>
<li><p>Save the script that created the comparison plot as ‘freefall_comparison.m’ and the figure as figure01.png (use command <code>&gt; print(figure01.png)</code>)</p></li>
<li><p>Save your work to a folder called ‘problem_3’ and add it to the ‘01_ME3255_repo’ repository</p></li>
</ol></li>
<li><p>In this part we will create functions that calculate velocity and acceleration in 3D based upon x,y,z-coordinates and time.</p>
<ol style="list-style-type: lower-alpha">
<li><p>Create a function that takes four vectors as input, x,y,z,t,(where x,y,z are coordinate positions in meters) and its output are three vectors [vx,vy,vz] which are velocity components in m/s.</p></li>
<li><p>Create a function that takes four vectors as input, x,y,z,t,(where x,y,z are coordinate positions in meters) and its output are three aectors [ax,ay,az] which are acceleration components in m/s<span class="math inline">\(^2\)</span>.</p></li>
</ol></li>
</ol>
</body>
</html>