Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started