Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # IMPORTING FUNCTIONS FOR USE
- from math import cos
- from math import radians
- from math import sqrt
- # DEFINING OWN FUNCTIONS. IT'S A TANGLED MESS
- def wft(n,y):
- for x in range(1,n):
- Z=mycathie2(wad(x,y),n)
- return(mycathie2(wad(x,y),n))
- def mycathie2(n,d):
- return(mycathie(wad(n,y),d))
- def wad(n,f):
- return(f/6480)**(n-1)
- def mycathie(c,d):
- return((1/c)**(-3/2)+cos(radians(d))*c)
- # EXECUTING:
- y=29 # shouldnt but must be defined to work.
- x=wft(8,29) # starting the chain of events. 8 is depth of calculation.
- # 29 is as in 29 above i thought.
- print("Difference between field A and B;",x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement