From f13cb00a28a07553635315e150694378c1a9438f Mon Sep 17 00:00:00 2001 From: "Ryan C. Cooper" Date: Tue, 12 Sep 2017 17:49:50 -0400 Subject: [PATCH] fixed formatting HW1 --- HW1/README.html | 77 ------------------------------------------------- HW1/README.md | 32 ++++++++++---------- 2 files changed, 16 insertions(+), 93 deletions(-) delete mode 100644 HW1/README.html diff --git a/HW1/README.html b/HW1/README.html deleted file mode 100644 index 666dc05..0000000 --- a/HW1/README.html +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - -

Homework #1

-

due 9/15/17

-
    -
  1. The first assignment is to fork the course syllabus and assignment.

    -
      -
    1. Sign into your UConn github account via github.uconn.edu.
    2. -
  2. -
-
-Step 1 -

Step 1

-
-
-Step 2 -

Step 2

-
-
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. 
-
    -
  1. The next assignment is to create your own repository named ‘01_ME3255_repo’.

    -
      -
    1. (if you signed out) Sign into your UConn github account via github.uconn.edu.

    2. -
    3. Follow these steps to create your own repository named 01_ME3255_repo:

      -
        -
      1. Click the +-sign and choose ‘New repository’
      2. -
    4. -
  2. -
-

Step 3
-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’.

-

Step 4
-iii. Now you are in your repo. Click on the README.md file and then click the pencil to edit it.

-

Step 5
-iv. Add a header with a # and type # Answer to Homework Question. Under this line answer this question: What do you hope to learn this semester?

-

Step 6
-v. At bottom of page, click ‘Commit changes’.

-

Step 7
-vi. Verify that your README.md file has been updated. Then copy the HTTPS clone URL on the right of the page.

-

Step 8
-vii. Paste this into the Homework #1 Google form reponse. https://goo.gl/forms/b3YrBuFxZaXTYV5s1

-

Step 9
-viii. Click on the gear for “Settings” then “Collaborators” on the left menu. Add rcc02007 (Ryan C. Cooper) and zhs15101 (Zhiqiang Shen) as a collaborators.

-
    -
  1. Use a script to create a variable called A_66, where every element 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.

  2. -
  3. Copy the data in US_energy_by_sector.csv to a file in you working directory in Matlab/Octave. Add these two plots to your 01_ME3255_repo with a heading of #Problem 4

    -
      -
    1. 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.

    2. -
    3. 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\(^6\) trillion). The cumulative energy is the area under the curve in part a from 1949 to a given year.

    4. -
  4. -
  5. In this part, you will modify the function presented in lecture freefall.m. In lecture, the function required an input of N to divide the 12 second solution into N-steps. Here, modify the input so that you can specify two inputs, step size-h, and timespan-timespan.

    -
      -
    1. Plot a comparison between calculated velocities v(t) for timesteps of h=0.1, 1, and 5 sec from 0 to 30 seconds.

    2. -
    3. Save the script that created the comparison plot as ‘freefall_comparison.m’ and the figure as figure01.png (use command > print(figure01.png))

    4. -
    5. Save your work to a folder called ‘problem_3’ and add it to the ‘01_ME3255_repo’ repository

    6. -
  6. -
  7. In this part we will create functions that calculate velocity and acceleration in 3D based upon x,y,z-coordinates and time.

    -
      -
    1. 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.

    2. -
    3. 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\(^2\).

    4. -
  8. -
- - diff --git a/HW1/README.md b/HW1/README.md index 516a76a..ae70860 100644 --- a/HW1/README.md +++ b/HW1/README.md @@ -3,28 +3,27 @@ 1. The first assignment is to fork the course syllabus and assignment. - a. Sign into your UConn github account via - [github.uconn.edu](https://github.uconn.edu/). +a. Sign into your UConn github account via +[github.uconn.edu](https://github.uconn.edu/). ![Step 1](./images/g1.jpg) ![Step 2](./images/g2.jpg) - b. Go to - [https://github.uconn.edu/rcc02007/ME3255S2017.git](https://github.uconn.edu/rcc02007/ME3255S2017.git) - and watch the repository. +b. Go to +[https://github.uconn.edu/rcc02007/ME3255F2017.git](https://github.uconn.edu/rcc02007/ME3255F2017.git) and watch the repository. c. Fork the repository to create your own version of the syllabus and assignments. 2. The next assignment is to create your own repository named '01_ME3255_repo'. - a. (if you signed out) Sign into your UConn github account via - [github.uconn.edu](https://github.uconn.edu/). +a. (if you signed out) Sign into your UConn github account via +[github.uconn.edu](https://github.uconn.edu/). - b. Follow these steps to create your own repository named `01_ME3255_repo`: +b. Follow these steps to create your own repository named `01_ME3255_repo`: - i. Click the +-sign and choose 'New repository' + i. Click the +-sign and choose 'New repository' ![Step 3](./images/g3.jpg)\ @@ -93,13 +92,14 @@ timespan-`timespan`. repository 6. In this part we will create functions that calculate velocity and acceleration in 3D -based upon x,y,z-coordinates and time. +based upon x,y,z-coordinates and time. (hint: look at [Lecture 04_intro to +m-files](https://github.com/cooperrc/ME3255F2017/tree/master/04_intro%20to%20m-files) - a. 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. + a. 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. - b. 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$^2$. + b. 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$^2$.