Nepoma

1.5

Nov 27th, 2023
1,333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. def find_eps(t):
  2.     M = 100
  3.     delta_M = 1
  4.     r_f = 0.09
  5.     while (True):
  6.         if (np.abs(NewtonHeat(0,85,22,r_f, t, M)[1][-1] - HeatEq(0,85,22,r_f, t, M)[1][-1]) <= 0.01):
  7.             return M,t/M
  8.         M += delta_M
  9.        
  10.     return False
  11. res1 = find_eps(1)
  12. res2 = find_eps(5)
  13. print("Ответ")
  14. print(f"при t = 1 M = {res1[0]}, Δt = {res1[1]}")
  15. print(f"при t = 5 M = {res2[0]}, Δt = {res2[1]}")
Advertisement
Add Comment
Please, Sign In to add comment