NICE,(not test
This commit is contained in:
parent
1363d82511
commit
e6b7722b78
44
libs/P_C.py
44
libs/P_C.py
@ -23,33 +23,55 @@ def S_C_float_check(SC): # stand for Scientific notation's float check
|
|||||||
SC[1] -= 1
|
SC[1] -= 1
|
||||||
|
|
||||||
|
|
||||||
def S_N_M(A, B): # stand for Scientific notation multiple
|
def S_N_M(A, B, *C): # stand for Scientific notation multiple
|
||||||
|
"""
|
||||||
|
formats:
|
||||||
|
A & B & C list format:docs.basic_config.json:basic_number"""
|
||||||
|
AB = __S_N_M(A, B)
|
||||||
|
if C:
|
||||||
|
for SN in C:
|
||||||
|
AB = __S_N_M(AB, SN)
|
||||||
|
else:
|
||||||
|
return AB
|
||||||
|
return AB
|
||||||
|
|
||||||
|
|
||||||
|
def __S_N_M(A, B):
|
||||||
"""
|
"""
|
||||||
formats:
|
formats:
|
||||||
A & B list format:docs.basic_config.json:basic_number"""
|
A & B list format:docs.basic_config.json:basic_number"""
|
||||||
C = [F_Mu(A[0], B[0]), F_A(A[1], B[1])]
|
R = [F_Mu(A[0], B[0]), F_A(A[1], B[1])]
|
||||||
S_C_float_check(C)
|
S_C_float_check(R)
|
||||||
Unit1, Unit2 = A[2] + B[2], A[3] + B[3]
|
Unit1, Unit2 = A[2] + B[2], A[3] + B[3]
|
||||||
if Unit1 == None:
|
if Unit1 == None:
|
||||||
Unit1 = []
|
Unit1 = []
|
||||||
libs.tools.D_C(Unit1, Unit2)
|
libs.tools.D_C(Unit1, Unit2)
|
||||||
C += [Unit1, Unit2]
|
R += [Unit1, Unit2]
|
||||||
return C
|
return R
|
||||||
|
|
||||||
|
|
||||||
def S_N_D(A, B): # stand for Scientific notation divided
|
def S_N_D(A, B): # stand for Scientific notation divided
|
||||||
"""
|
"""
|
||||||
formats:
|
formats:
|
||||||
A & B list format:docs.basic_config:basic_number"""
|
A & B list format:docs.basic_config:basic_number"""
|
||||||
C = [F_D(A[0], B[0]), F_Mi(A[1], B[1])]
|
R = [F_D(A[0], B[0]), F_Mi(A[1], B[1])]
|
||||||
S_C_float_check(C)
|
S_C_float_check(R)
|
||||||
Unit1, Unit2 = A[2] + B[3], A[3] + B[2]
|
Unit1, Unit2 = A[2] + B[3], A[3] + B[2]
|
||||||
if Unit1 == None:
|
if Unit1 == None:
|
||||||
Unit1 = []
|
Unit1 = []
|
||||||
libs.tools.D_C(Unit1, Unit2)
|
libs.tools.D_C(Unit1, Unit2)
|
||||||
C += [Unit1, Unit2]
|
R += [Unit1, Unit2]
|
||||||
return C
|
return R
|
||||||
|
|
||||||
|
|
||||||
def G_C(M, m, R): #stand for gravity calculation
|
def G_C(M, m, R, G): #stand for gravity calculation
|
||||||
pass
|
"""
|
||||||
|
formats:
|
||||||
|
M : ship's mass
|
||||||
|
m : planet's mass
|
||||||
|
R : distance to the planet
|
||||||
|
G : Gravitational constant
|
||||||
|
M & m & R format: docs.basic_config:basic_number
|
||||||
|
"""
|
||||||
|
A = S_N_M
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user