File size: 1,516 Bytes
eb8de2e
 
 
 
 
 
 
 
d3ae816
eb8de2e
 
 
87bd119
0994040
eb8de2e
 
 
 
 
75c8fbf
6d37acf
 
eb8de2e
 
 
 
 
 
 
 
 
 
 
 
d786f11
 
eb8de2e
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import streamlit as st

# Add a header
st.header("Ghost Dance - A continued prophecy")

# Add text underneath the link
st.write("This is the patent that the math is based on.")


# Add a link
st.markdown("https://patents.google.com/patent/US20060014125A1/en")

st.markdown("### Basics from the patent")
st.write("The calculation is based on your weight that is calculated by the average persons water content at 67%. Because the atoms making up water sit near the `Planck boundary`, we are able to move that mass outside of the boundary.")

# Create a sidebar with a slider to choose between pounds and kilograms
unit = st.sidebar.selectbox("Choose a unit of weight", ["pounds", "kilograms"])

# Create a text input field for the user to enter their weight
st.write("Default is lbs and use the > tab at the top left to switch to kilograms.")
st.markdown("### Enter your weight below")
weight = st.number_input("Weight:", value=1)

# Convert the weight to the selected unit
if unit == "pounds":
    weight_in_kg = weight * 0.453592
else:
    weight_in_kg = weight

# Calculate the length using the formula L=(M/W)*T
length_in_meters = (50.909563606 / weight_in_kg) * 1

# Convert the length to feet and display the result
length_in_feet = length_in_meters * 3.28084
st.write(f"Meters per second to step: {length_in_meters:.3f}")
st.write(f"Feet per second to step: {length_in_feet:.3f}")

st.markdown("""
### Use a metronome to improve your accuracy.
""")
st.video("https://www.youtube.com/watch?v=ymJIXzvDvj4&t=79s")