(50g) Earthquake Magnitudes: How Much Stronger?
07-06-2019, 01:21 PM
Post: #1
 Joe Horn Senior Member Posts: 1,590 Joined: Dec 2013
(50g) Earthquake Magnitudes: How Much Stronger?
In honor of the two large earthquakes here in Southern California in the past two consecutive days, here's a little User RPL program called 'QUAKE' which answers the question, "How much bigger in one earthquake than another earthquake?"

"Earthquake magnitude" has many different meanings. This program uses the definition used by the USGS, since that's what the US news services quote.

INPUT: Two earthquake magnitudes (order doesn't matter).
OUTPUT: How much "BIGGER" the larger quake is, and how much "STRONGER" (energy expended) the larger quake is. Both outputs are tagged.

Example: Yesterday's quake was M7.1 and the quake the day before that was M6.4. How much worse was yesterday's quake?

7.1 ENTER 6.4 QUAKE -->
STRONGER: 11.2
BIGGER: 5

So yesterday's quake was 5 times bigger and 11.2 times stronger than the quake the day before that.

'QUAKE'
<< I->R - ABS ALOG LASTARG 2. / ALOG OVER * 1. RND
"STRONGER" ->TAG SWAP 1. RND "BIGGER" ->TAG >>

BYTES: 76.5 #EECDh

The math is simple. If the two magnitudes are A and B:
BIGGER = 10^ABS(A-B)
STRONGER = 10^(ABS(A-B)/2)*BIGGER
Simplifying the program is left as a micro-challenge.

<0|ΙΈ|0>
-Joe-
 « Next Oldest | Next Newest »

 Messages In This Thread (50g) Earthquake Magnitudes: How Much Stronger? - Joe Horn - 07-06-2019 01:21 PM RE: (50g) Earthquake Magnitudes: How Much Stronger? - Valentin Albillo - 07-06-2019, 04:20 PM RE: (50g) Earthquake Magnitudes: How Much Stronger? - Joe Horn - 07-06-2019, 09:55 PM RE: (50g) Earthquake Magnitudes: How Much Stronger? - grsbanks - 07-06-2019, 05:06 PM RE: (50g) Earthquake Magnitudes: How Much Stronger? - Joe Horn - 07-06-2019, 09:52 PM RE: (50g) Earthquake Magnitudes: How Much Stronger? - grsbanks - 07-07-2019, 07:57 AM RE: (50g) Earthquake Magnitudes: How Much Stronger? - Didier Lachieze - 07-06-2019, 05:07 PM RE: (50g) Earthquake Magnitudes: How Much Stronger? - ijabbott - 07-07-2019, 02:04 AM RE: (50g) Earthquake Magnitudes: How Much Stronger? - StephenG1CMZ - 07-17-2019, 02:19 PM

User(s) browsing this thread: 1 Guest(s)