Difficult-Rocket/test.py
沈瑗杰 b6c9ad28af reeee
some littel change
2021-01-24 18:26:56 +08:00

33 lines
638 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""
writen by shenjackyuanjie
mail: 3695888@qq.com
"""
import bin
A = [2.573, 3, ["m", "kg"], ["N", "s"]]
B = [2.45, -7, ["N", "kg"], ["m", "s"]]
C = [1.14, 5, ["m"], ["s"]]
D = [1.419, -4, ["kg"], ["m"]]
print("A = ", A)
print("B = ", B)
print("C = ", C)
print("D = ", D)
a = bin.tools.S_N_M(A, B)
b = bin.tools.S_N_D(A, B)
c = bin.tools.S_N_M(b, B)
d = bin.tools.S_N_D(a, B)
print("A × B = ", a)
print("A ÷ B = ", b)
print("A × B ÷ B = ", c)
print("A ÷ B × B = ", d)
e = bin.tools.S_N_M(A, B, C, D)
f = bin.tools.S_N_M(A, bin.tools.S_N_M(B, bin.tools.S_N_M(C, D)))
print("A * B * C * D = ", e)
print("A * B * C * D = ", f)