Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Jupyter notebook Chapter 4 Practice E.ipynb

34 views
Kernel: Anaconda (Python 3)

Chapter 4 Practice E

Practice E Number 1

μk=(Fk/Fn)\begin{equation} \mu k = (Fk/Fn) \end{equation}
μs=(Fs,max/Fn)\begin{equation} \mu s = (Fs,max/Fn) \end{equation}
Ff=μFn\begin{equation} Ff = \mu Fn \end{equation}
∑F=(ma)\begin{equation} \sum F = (ma) \end{equation}
Fg=mag\begin{equation} Fg = mag \end{equation}
import numpy from numpy import cos from numpy import sin from numpy import tan from numpy import radians from numpy import degrees
25
print ("Problem 1") print ("This program is intened for when you have the applied force, the incline, the mass, and the mu. You will be trying to find the acceleration. ") import numpy from numpy import cos from numpy import sin from numpy import tan from numpy import radians from numpy import degrees mass = float(input("What's the mass?")) F = float(input("What's the force?")) d = float(input("What's the angle measure?")) mu = float(input("What's the mu?")) def sin(degrees): return(numpy.sin(numpy.radians(degrees))) def cos(degrees): return(numpy.cos(numpy.radians(degrees))) Fx = F*cos(d) print (Fx) Fy = F*sin(d) print (Fy) Fg = mass*9.81 print (Fg) Fn = Fg-Fy print (Fn) Fk = mu*Fn print (Fk) ax = (Fx-Fk)/mass print (ax)
Problem 1 This program is intened for when you have the applied force, the incline, the mass, and the mu. You will be trying to find the acceleration. What's the mass?41 What's the force?200 What's the angle measure?34 What's the mu?.230 165.807514511 111.838580694 402.21000000000004 290.371419306 66.7854264403 2.41517287977
ii = True while ii == True: print ("Problem 2") print ("This program is intended for when you have the mass, the incline of a ramp, the incline that the item is being pulled up the ramp, the mu, and the applied force. You will be trying to find the acceleration. ") import numpy mass = float(input("What's the mass?")) F = float(input("What's the force?")) d = float(input("What's the angle measure?")) mu = float(input("What's the mu?")) incline = float(input("What is the incline?")) def sin(degrees): return(numpy.sin(numpy.radians(degrees))) def cos(degrees): return(numpy.cos(numpy.radians(degrees))) #Find the F,x and F,y Fx = F*cos(d) Fy = F*sin(d) #Find Force due to gravity Fg = mass*9.81 #Find Fg,x and Fg,y Fgx = Fg*sin(incline) Fgy = Fg*cos(incline) #Find Fn Fn = Fgy-Fy #Find Fk Fk = mu*Fn #Find acceleration ax = (Fx-Fk-Fgx)/mass print(ax)
Problem 2 This program is intended for when you have the mass, the incline of a ramp, the incline that the item is being pulled up the ramp, the mu, and the applied force. You will be trying to find the acceleration. What's the mass?35 What's the force?185 What's the angle measure?25 What's the mu?.27 What is the incline?12 0.763187413749 Problem 2 This program is intended for when you have the mass, the incline of a ramp, the incline that the item is being pulled up the ramp, the mu, and the applied force. You will be trying to find the acceleration.
ii = True while ii == True: print ("Problem 3, Part A") print ("This program is intended for when you have the mass, the incline of the ramp, and the acceleration.You will be trying to find the mu. ") import numpy mass = float(input("What's the mass?")) a = float(input("What's the acceleration?")) incline = float(input("What is the incline?")) def sin(degrees): return(numpy.sin(numpy.radians(degrees))) def cos(degrees): return(numpy.cos(numpy.radians(degrees))) #calculate Force MF = mass*a print (MF) #calculate Fg Fg = mass*9.81 print (Fg) #calculate Fgy and Fgx Fgy = Fg*cos(incline) Fgx = Fg*sin(incline) print (Fgy) print (Fgx) #calculate Fn Fn = Fgy print (Fn) #Calculate Fk Fk = Fgx-MF print (Fk) #Calculate mu mu = Fk/Fn print (mu)
Problem 3, Part A This program is intended for when you have the mass, the incline of the ramp, and the acceleration.You will be trying to find the mu. What's the mass?75 What's the acceleration?3.6 What is the incline?25 270.0 735.75 666.815954312 310.941386076 666.815954312 40.9413860757 0.0613983300954 Problem 3, Part A This program is intended for when you have the mass, the incline of the ramp, and the acceleration.You will be trying to find the mu.
ii = True while ii == True: print ("Problem 3, Part B") print ("This program is intended for when you have the mass, the incline of the ramp, the incline, and the mu. You will be trying to find the acceleration. ") import numpy def sin(degrees): return(numpy.sin(numpy.radians(degrees))) def cos(degrees): return(numpy.cos(numpy.radians(degrees))) m = float(input("What's the mass?")) incline = float(input("What's the incline of the ramp?")) mu = float(input("What's the mu?")) #Caluclate Fgx Fgx = m*9.81*sin(incline) print (Fgx) #Calculate Fn (Fgy) Fn = m*9.81*cos(incline) print (Fn) #Calculate Fk Fk = mu*Fn print (Fk) #Calculate Fxnet Fxnet = Fgx-Fk print (Fxnet) #Calculate A A = Fxnet/m print (A)
Problem 3, Part B This program is intended for when you have the mass, the incline of the ramp, the incline, and the mu. You will be trying to find the acceleration. What's the mass?75 What's the incline of the ramp?25 What's the mu?.061 What's the incline?25 310.941386076 666.815954312 40.675773213 270.265612863 3.60354150484 Problem 3, Part B This program is intended for when you have the mass, the incline of the ramp, the incline, and the mu. You will be trying to find the acceleration.
ii = True while ii == True: print ("Problem 4") print ("This is for when you have Fg, applied force, and incline. You will be calculating mu.") import numpy def sin(degrees): return(numpy.sin(numpy.radians(degrees))) def cos(degrees): return(numpy.cos(numpy.radians(degrees))) N = float(input("What's the newtons?")) F = float(input("What's the force?")) incline = float(input("What's the incline?")) #Calculate Mass mass = N*9.81 print (mass) #Calculate Fx and Fy Fx = F*cos(incline) print (Fx) Fy = F*sin(incline) print (Fy) #Calculate Fk Fk = 347.287 print (Fk) #Calculate Fg Fg = 325 print (Fg) #Calculate Fn Fn = Fg-Fy print (Fn) #Calculate mu mu = Fk/Fn print (mu)
Problem 4 This is for when you have Fg, applied force, and incline. You will be calculating mu. What's the newtons?325 What's the force?425 What's the incline?-35.2 3188.25 347.286581792 -244.983734372 347.287 325 569.983734372 0.609292825492 Problem 4 This is for when you have Fg, applied force, and incline. You will be calculating mu.