SOLVE IN PYTHON PYTHON NOT MATLAAAB PLEASE Write a function that finds the period of the fundamental mode of oscillation for a shear building where the masses of each floor and the stiffnesses of each story are all the same . For example, for a 8-story shear building where each floor is 1200 kg and the stiffness between each floor is 10 5 N/m, the period of the fundamental mode would be 3.73 s. def sb(m, k, n): '''Find the period of fundamental mode of oscillation for an n-story shear building model with all masses equal to m and all stiffnesses equal to k. Example: if m = 1000, k = 10000, n = 3, then fm = 4.46'''
SOLVE IN PYTHON PYTHON NOT MATLAAAB PLEASE Write a function that finds the period of the fundamental mode of oscillation for a shear building where the masses of each floor and the stiffnesses of each story are all the same . For example, for a 8-story shear building where each floor is 1200 kg and the stiffness between each floor is 10 5 N/m, the period of the fundamental mode would be 3.73 s. def sb(m, k, n): '''Find the period of fundamental mode of oscillation for an n-story shear building model with all masses equal to m and all stiffnesses equal to k. Example: if m = 1000, k = 10000, n = 3, then fm = 4.46'''
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
SOLVE IN PYTHON PYTHON NOT MATLAAAB PLEASE
Write a function that finds the period of the fundamental mode of oscillation for a shear building where the masses of each floor and the stiffnesses of each story are all the same . For example, for a 8-story shear building where each floor is 1200 kg and the stiffness between each floor is 10 5 N/m, the period of the fundamental mode would be 3.73 s.
def sb(m, k, n):
'''Find the period of fundamental mode of oscillation for an n-story shear building model with all masses equal to m and all stiffnesses equal to k.
Example: if m = 1000, k = 10000, n = 3, then fm = 4.46'''
Expert Solution
Step 1: Algorithm:
- Start by defining a function sb(m, k, n) that takes three parameters: m (mass per floor), k (stiffness per connection), and n (number of floors).
- Calculate the total mass of the building by multiplying the mass per floor m with the number of floors n. Assign the result to a variable mass.
- Calculate the total stiffness of the building by multiplying the stiffness per connection k with n - 1. Assign the result to a variable stiffness.
- Calculate the period using the formula: period = 2 * pi * sqrt(mass / stiffness).
- Return the calculated period as the output of the function.
- End the function.
Step by step
Solved in 3 steps with 1 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY