Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Views: 557

Rename this file as Chapter_2_Assignment_TurnIn.sagews

  • To do this, go to the file menu (click Files above), then click

%md # Problems to work on your own: The following are list of problems for you to work offline. These will **not be collected** but quiz questions may be based on these questions. Additionally, these are very basic questions that will help you learn how to work the problems. Partial solutions for **all** of these problems are included in the text on pages 620-669. Problems that start with a *P* are preliminary problems (fairly basic skills) and problems starting with *F* are fundamental problems, that are a little more challenging but cover the fundamental skills you need to solve the problems in the chapter. P2-1, P2-5, P2-7, P2-8 F2-3, F2-6, F2-7, F2-9, F2-13, F2-14, F2-19, F2-23, F2-25, F2-30

Worked Example

I will work through example 2.1 on page 23 in your text to show you how you can make use of SageMath

1) Facts

This is the first part of the problem solving format. Since there is already a sketch of the problem above we don't need to include the sketch like we normally would.

Known quantities F1=100NF_1 = 100 N oriented at an angle 1515^{\circ} counterclockwise from the x-axis F2=150NF_2 = 150 N is oriented at an angle 1010^{\circ} clockwise from the y-axis.

Question Find the magnitude and direction of the resultant force on the hook by the two forces


2) Lacking

We are lacking the resultant force FR\vec{F}_R. We need the magnitude and direction of this force.


3) Approximations and Assumptions

This problem is pretty straight forward so no assumptions or approximations are needed.

4) Representations

The free body diagrams below are the visual representations needed to solve this problem.

Free Body Diagrams

To draw the free body diagram (which is included in this example but I wanted to show you how it's done) we will use Latex with a package called Tikz. All solutions must include a free body diagram of some sort.

You can draw a neatly sketched free body diagram by hand, take a picture, upload it to SageMath, and insert it in your homework or you can draw the free body diagram in SageMath using Tikz. I recommend drawing it in SageMath because being able to use Latex is an impressive skill to have on your resume, but I will leave the final choice up to you. You are not required to use Tikz if you don't want. I will be using Tikz and Latex so you can use my code as a template. You can find a tutorial for getting started with Tikz at http://cremeronline.com/LaTeX/minimaltikz.pdf

Upload and insert hand-drawn free body diagrams

  1. Upload the file into your homework directory

    • Go to the file directory and select the +Create button, then drag and drop your picture to the upload box

    • Insert the following code into your worksheet, replacing filename with the actual name of the file including the extension: <img src="filename" width="600">

    • Adjust the width so the image is big enough to see clearly.

Draw free body diagrams in SageMath

There is a Handout folder on 'How to insert free body diagrams in SageMathCloud' that covers how to use Tikz to draw figures. Go there is you want to use Tikz for these drawings.

#Insert your cursor in this cell and hit Shift+Enter to see the free body diagram (FBD) latex.add_package_to_preamble_if_available('tikz') #Needed to get tikz working #Can also generate tikz figures (see http://www.texample.net/tikz/examples/ for some great examples) %latex #This tells SageMath to use Latex to render the figure below \begin{tikzpicture} \draw[very thin,->] (0,0) -- (0:5); %x-axis \draw[very thin,->] (0,0) -- (90:5); %y-axis \draw[thick,->] (0,0) -- (15:100/50) node[above] {$\vec{F}_{1}$}; %Vector 1 \draw[thick,->] (0,0) -- (80:150/50) node[above] {$\vec{F}_{2}$}; %Vector 2 \draw[draw=blue,thick,->] (0,0) -- (54.8:213/50) node[above] {$\vec{F}_{R}$}; %Resultant vector \end{tikzpicture}
### Evaluate this cell to see a different drawing of the free body diagram ### Don't worry about what is written here, just scroll down to the image below latex.add_package_to_preamble_if_available('tikz') #Needed to get tikz working latex.add_to_preamble("\\usetikzlibrary{quotes,angles,calc}") %latex #This tells SageMath to use Latex to render the figure below \begin{tikzpicture} %Define vectors and origin \coordinate (O) at (0,0); \coordinate (F1) at (15:100/50); \coordinate (F2) at (80:150/50); \coordinate (X) at (5,0); \coordinate (Y) at (0,5); %Define endpoints of lines \coordinate (A) at (F1); \coordinate (B) at ($(F1)+(F2)$); \coordinate (C) at (F2); %Draw x and y axis \draw[thin,->] (O) -- (X); \draw[thin,->] (O) -- (Y); %Draw the vectors \draw[thick,->] (O) -- (A) node[right] {$F_1$}; \draw[thick,->] (A) -- (B) node[right] {$F_2$}; \draw[blue,thick,->] (O) -- (B) node[left] {$F_R$}; %Close parallelogram \draw[dashed] (O) -- (C); \draw[dashed] (C) -- (B); %Draw the angle \path (B) -- (A) -- (O) pic["\small $\theta_4=$?",draw=orange,<->,angle eccentricity=1,angle radius=.4cm] {angle=B--A--O}; \path (X) -- (O) -- (A) pic["\small $\theta_1=15$", draw=red, <->,angle eccentricity=1,angle radius=1.6cm] {angle=X--O--A}; \path (C) -- (O) -- (Y) pic[ "\small $\theta_2=10$", draw=red, <->, angle eccentricity=1, angle radius=2cm] {angle=C--O--Y}; \path (C) -- (O) -- (A) pic["\small $\theta_3=65$", draw=blue, <->, angle eccentricity=1, angle radius=1.4cm] {angle=A--O--C}; \end{tikzpicture}

The sum of the angles inside a closed parallelogram must add up to 360360^{\circ} (A simple case of this is a rectangle, which has four 9090^{\circ} angles).

Since θ3\theta_3 and the angle opposite both equal 90(10+15)=6590^{\circ} - (10^{\circ} + 15^{\circ}) = 65^{\circ}, we can find θ4\theta_4 from the following: 2θ4+2θ3=3602\theta_4+2\theta_3 = 360^{\circ} or θ4=115\theta_4 = 115^{\circ}

We'll use the law of sines and law of cosines in the cell below to find out the magnitude and direction of FR\vec{F}_R.

5) Solve Problem

Below is the math used to find the resultant force

#This cell shows how to calculate the forces and angles for this example F_1=150 F_2=100 theta_4=115/180*pi #Angles must be in radians F_R=sqrt(F_1^2 + F_2^2 - 2*F_1*F_2*cos(theta_4)) F_R #Here is the magnitude of the resultant force F_R.n(digits=3) #Here is a numerical approximation of that force theta_3 = asin(F_1/F_R*sin(theta_4)) theta_3.n(digits=3) #Remember the answer is in radians theta_3_degrees = (theta_3.n(digits=3)*180/pi).n(digits=3) theta_3_degrees theta_total= theta_3_degrees+15 theta_total pretty_print(r"The magnitude of the resultant force is $F_R = $", F_R.n(digits=3), "N") pretty_print(r"The angle between the x-axis and $\vec{F}_{R}$ is ", theta_total, " degrees.")
sqrt(-30000*cos(23/36*pi) + 32500) 213. 0.694 39.8 54.8
The magnitude of the resultant force is FR=F_R = 213.\displaystyle 213. N
The angle between the x-axis and FR\vec{F}_{R} is 54.8\displaystyle 54.8 degrees.

Summary

The magnitude of the resultant force is Fr=213 NF_r = 213\ N directed at an angle of 54.854.8^{\circ} above the x-axis.

6) Evaluate the answer

Is this answer reasonable?

The two forces we are adding together are 100 N and 150 N. We expect the magnitude of FR\vec{F}_{R} to be larger than either magntidue (so FR>150 NF_R > 150\ N) and smaller than the sum of the two (so FR<250 NF_R<250\ N). Our result of 213 N falls in between the two limits so this result is reasonable.

The angle of FR\vec{F}_{R} is most likely between the angle both vectors make with the x-axis (1010^{\circ} and 8080^{\circ}). The result of 54.854.8^{\circ} falls between the two values so this is a reasonable angle.

The result of FR=213 N at 54.8\vec{F}_{R} = 213\ N \text{ at } 54.8^{\circ} passes two reasonability tests so I feel confident this answer is reasonable.

Problem 1

The first problem is example 2.2 from the text so the problem is worked for you. This is good practice for using SageMath to write up your solutions.

  1. Write up the first several steps of the problem solving format, which include 1) Facts, 2) Lacking Information, and 3) Approximations and Assumptions (none needed now).

  2. For part (4) of the problem solving format, Representations, draw a free body diagram. Redraw figure (b) below. I've given you a template for this below if you want to use Tikz. Skip figure (c) for now. If you want to draw the free body diagram and insert a picture, create a markdown cell (start the cell with %md), and use <img src="filename" width="600">. Replace filename with the name of your photo and adjust the width so the free body diagram is easily readable.

  3. Describe how you are going to solve the problem. Don't just copy the text from the text. Try paraphrasing in your own words. This is good practice. Use a markdown cell for this. I've included a rough template below.

  4. Write up your calculations using SageMath. Include all equations and use comments to explain your steps.

  5. Summarize and Evaluate your result by answering "Is this answer reasonable?" Use a markdown cell. I've included a rough template for this.

### If uploading a hand-drawn picture delete the text in this cell. ### I've given you the $u$ and $v$ axes. You will need to add code for the three vectors to reproduce figure (b). Don't worry about figure (c) latex.add_package_to_preamble_if_available('tikz') #Needed to get tikz working #Can also generate tikz figures (see http://www.texample.net/tikz/examples/ for some great examples) %latex #This tells SageMath to use Latex to render the figure below \begin{tikzpicture} \draw[very thin,->] (0,0) -- (-90-30:4) node[below] {v}; %v-axis. Clockwise angles are negative. Notice that I calculated the angle in place -90-30 = -120 \draw[very thin,->] (0,0) -- (30:4) node[below] {u}; %u-axis %add your code for the other three vectors below \end{tikzpicture}
%md Your explanation of the problem here

Your explanation of the problem here

5) Solve

Insert code for calculating the answer below

#Insert your calculations here
%md ## Summary - Place your summary of your answers here ## Evaluate Answer: - Write a credible argument as to why your results are reasonable. ### Is this answer reasonable?

Summary

  • Place your summary of your answers here

Evaluate Answer:

  • Write a credible argument as to why your results are reasonable.

Is this answer reasonable?

Problem 2

  • Resolve each force acting on the gusset plate into its x and y components, and express each force as a Cartesian vector

Note: vectors (including i, j, and k) should be represented in a bold font. You can create bold text by placing double asterisks on either side of a letter, word, or sentence. For example **i** results in a bold i, which tells you this is a vector. Magnitudes should not be in bold type because they are scalar quantities, not vectors.

I've included a template for each of the problem solving elements for you to fill in below.

[](Problem 2-36)

%md ## 1) Facts - List all known facts here. If there was no image above you would need to add a sketch of the problem. ## 2) Lacking - List what information you need. In this case you are lacking the individual components of each force. List out the variables you will use for each one and describe what it represents. For example: F_3x is the x-component of force **F_3**. If you want your text to look a little more professional you can type the equations in Latex. This is not required so you can ignore this if you want. For example: $F_{3x}$ is the x-component of force $\vec{F}_{3}$. ## 3) Assumptions and Approximations - None needed for this problem ## 4) Representations - Insert sketches of each force, showing how you decompose it into components. Replace *filename* in the code below with the name of the file (including the extension) that you uploaded. The name of the file must be surrounded by quote marks as shown below. See the handout on *How to insert free body diagrams in SMC* for instructions on how to upload files. <img src="filename" width="600">

1) Facts

  • List all known facts here. If there was no image above you would need to add a sketch of the problem.

2) Lacking

  • List what information you need. In this case you are lacking the individual components of each force. List out the variables you will use for each one and describe what it represents. For example:

F_3x is the x-component of force F_3.

If you want your text to look a little more professional you can type the equations in Latex. This is not required so you can ignore this if you want. For example: F3xF_{3x} is the x-component of force F3\vec{F}_{3}.

3) Assumptions and Approximations

  • None needed for this problem

4) Representations

  • Insert sketches of each force, showing how you decompose it into components. Replace filename in the code below with the name of the file (including the extension) that you uploaded. The name of the file must be surrounded by quote marks as shown below. See the handout on How to insert free body diagrams in SMC for instructions on how to upload files.

5) Solve

Enter the code for solving the problem in the cell below.

### Solve step goes here
%md # Summarize - Summarize your results here ## 6) Evaluate - Answer the following question. It isn't enough to say "my answer seems reasonable". You must provide a convincing argument why it seems reasonable and convince me you know what you are talking about. ### Is this answer reasonable?

Summarize

  • Summarize your results here

6) Evaluate

  • Answer the following question. It isn't enough to say "my answer seems reasonable". You must provide a convincing argument why it seems reasonable and convince me you know what you are talking about.

Is this answer reasonable?

Problem 3

  • Determine the magnitude of the resultant force acting on the gusset plate due to all three beams. Give the direction as an angle measured counterclockwise from the positive x-axis.

Note: vectors (including i, j, and k) should be represented in a bold font. You can create bold text by placing double asterisks on either side of a letter, word, or sentence. For example **i** results in a bold i, which tells you this is a vector. Magnitudes and angles should not be in bold type because they are scalar quantities, not vectors.

I've included a template for each of the problem solving elements for you to fill in below.

[](Problem 2-37)

%md ## 1) Facts - List all known facts here. If there was no image above you would need to add a sketch of the problem. ## 2) Lacking - List what information you need. In this case you are lacking the individual components of each force. List out the variables you will use for each one and describe what it represents. For example: F_3x is the x-component of force **F_3**. If you want your text to look a little more professional you can type the equations in Latex. This is not required so you can ignore this if you want. For example: $F_{3x}$ is the x-component of force $\vec{F}_{3}$. ## 3) Assumptions and Approximations - None needed for this problem ## 4) Representations - Insert sketches of each force, showing how you decompose it into components. Replace *filename* in the code below with the name of the file (including the extension) that you uploaded. The name of the file must be surrounded by quote marks as shown below. See the handout on *How to insert free body diagrams in SMC* for instructions on how to upload files. <img src="filename" width="600">

1) Facts

  • List all known facts here. If there was no image above you would need to add a sketch of the problem.

2) Lacking

  • List what information you need. In this case you are lacking the individual components of each force. List out the variables you will use for each one and describe what it represents. For example:

F_3x is the x-component of force F_3.

If you want your text to look a little more professional you can type the equations in Latex. This is not required so you can ignore this if you want. For example: F3xF_{3x} is the x-component of force F3\vec{F}_{3}.

3) Assumptions and Approximations

  • None needed for this problem

4) Representations

  • Insert sketches of each force, showing how you decompose it into components. Replace filename in the code below with the name of the file (including the extension) that you uploaded. The name of the file must be surrounded by quote marks as shown below. See the handout on How to insert free body diagrams in SMC for instructions on how to upload files.

5) Solve

Enter the code for solving the problem in the cell below.

### Solve steps go here. Be sure to show all work and prove an explanation. Comments (things that aren't calculated) start with a hashtag #
%md # Summarize - Summarize your results here ## 6) Evaluate - Answer the following question. It isn't enough to say "my answer seems reasonable". You must provide a convincing argument why it seems reasonable and convince me you know what you are talking about. ### Is this answer reasonable?

Summarize

  • Summarize your results here

6) Evaluate

  • Answer the following question. It isn't enough to say "my answer seems reasonable". You must provide a convincing argument why it seems reasonable and convince me you know what you are talking about.

Is this answer reasonable?

%md # <img src="./figures/homework.png" width="64"> Problem 4 - Summary of Assignment - Describe what you learned in this homework and what things you already knew from previous classes. List any insights or deeper understanding you gained while completing this assignment. ### Things I used that I already knew: - Explain (briefly) what skills you already knew that you used here. *e.g. I used sines and cosines which I learned about in a trigonometry course* ### Things I learned completing this assignment: - What new skills did you learn while completing this assignment? *e.g. I learned how to calculate Cartesian components of a vector* ### Insights and understanding gained: - What insights or understanding did you gain by completing this assigment? *e.g. I now have a better understanding of how Cartesian vector notation is related to the scalar vector notation and what those two types of notation mean*

Problem 4 - Summary of Assignment

  • Describe what you learned in this homework and what things you already knew from previous classes. List any insights or deeper understanding you gained while completing this assignment.

Things I used that I already knew:

  • Explain (briefly) what skills you already knew that you used here. e.g. I used sines and cosines which I learned about in a trigonometry course

Things I learned completing this assignment:

  • What new skills did you learn while completing this assignment? e.g. I learned how to calculate Cartesian components of a vector

Insights and understanding gained:

  • What insights or understanding did you gain by completing this assigment? e.g. I now have a better understanding of how Cartesian vector notation is related to the scalar vector notation and what those two types of notation mean