Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- #Define ALL the things
- Hypotenuse=1.4142135623730951
- Adjacent=1
- Opposite=1
- Percentage=200
- Percentage_Decimal=2
- Value=1
- First_Value=2
- Second_Value=1
- Value_Prev=1
- Value_Alt=2
- IncDec="Null"
- Decimal_Percentage=0
- #--------------
- #ALL the mathematical jazz
- Hypotenuse=math.sqrt((Opposite**2)+(Adjacent**2))
- Adjacent=math.sqrt((Hypotenuse**2)-(Opposite**2))
- Opposite=math.sqrt((Hypotenuse**2)-(Adjacent**2))
- #--------------
- #Percentage Usage
- Percentage=Decimal_Percentage*100
- Decimal_Percentage=Percentage/100
- New_Value=Value*Decimal_Percentage
- #---------------
- #Percentage Creation
- Percentage_Decimal=First_Value/Second_Value
- Percentage_New=Percentage_Decimal*100
- #----------------
- #Percentage IncDec
- if Value_Prev<Value_Alt:
- IncDec=="Increase"
- if Value_Prev>Value_Alt:
- IncDec=="Decrease"
- if IncDec=="Increase":
- Value_Dif==Value_Alt-Value_Prev
- if IncDec=="Decrease":
- Value_Dif==Value_Prev-Value_Alt
- if IncDec=="Increase":
- Percentage_IncDec==Value_Dif/Value_Prev
- if IncDec=="Decrease":
- Percentage_IncDec==Value_Dif/Value_Alt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement