Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello! I have to create a program in Python. I have to set a function, which accepts as an argument the epicentral distance and returns

Hello!

I have to create a program in Python. I have to set a function, which accepts as an argument the epicentral distance and returns the travel time of the first arriving wave

so What i have thought about is:

#Calculate the distance from the source

def traveltime(dist): ''' CALCULATE THE MINIMUM ARRIVAL TIME OF THE P WAVES KEYWORD ARGUMENT: D= EPICENTRAL DISTANCE ''' direct_waves=dist+1 refractive_granite=(dist/6)+1 refractive_vasalt=(dist/6.6)+3.6 refractive_mantle=(dist/7.9)+6.9 #Now i have to find the minimum traveltime and return it return

dist=input("Enter the distance:")

But it doesnt work, plus I do not know how to find the minimum travel time

Thank you very much in advance

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Science Project Ideas In Health Care Volume 1

Authors: Zemelak Goraga

1st Edition

B0CPX2RWPF, 979-8223791072

More Books

Students also viewed these Databases questions