Skip to content

Commit ef94905

Browse files
committed
自动提交: Sun Nov 17 09:57:41 PM CST 2024
1 parent 1bdc512 commit ef94905

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

5activitylambda/activitylambda

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import math
2+
3+
def half_life_decay_constant(value):
4+
return math.log(2) / value
5+
6+
def main():
7+
# choice = input("请输入数值: ")
8+
value = float(input("请输入数值: "))
9+
10+
decay_constant = half_life_decay_constant(value)
11+
print(f"转换后为: {decay_constant}")
12+
13+
if __name__ == "__main__":
14+
main()

0 commit comments

Comments
 (0)