# var ksu nr kr real integer const eps 0e-8 m1 938 272e6 m2 939 565e6 97

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83``` ```var ksu,n,u,r,nr,kr,s: real; i,k:integer; const eps = 1.0e-8; m1=938.272e6; m2=939.565e6; h=1.97e-5; e=2.224e6; pm=m1*m2/(m1+m2); a=1; b=pi-100*eps; function nu(r:real): real; begin result:=sqrt((2*pm*e*sqr(r))/sqr(h)); end; function getU(ksu,n,r: real): real; var g:real; begin g:=sqr(h)/(2*pm*sqr(r)); result:=g*(sqr(ksu)+sqr(n)); end; function f(x: real): real; begin f := -x * (cos(x) / sin(x)) -n; end; function podbor(a, b: real): real; var c: real; begin c := (a + b) / 2; while not ((abs(f(c)) < eps) and (((b - a) / 2) < eps)) do begin if f(c) = 0 then break; if f(a) * f(c) < 0 then b := c else a := c; c := (a + b) / 2; end; Result:= c; end; procedure getparametrs(var nr:real; var kr:real; var k:integer); label l; var s,f:real; ksh:integer; begin l: writeln('введите интервал ферми [начало конец] (без скобок)'); readln(s,f); if s>f then goto l; writeln('введите количество шагов'); readln(ksh); nr:=s/1e13; kr:=f/1e13; k:=ksh; end; begin getparametrs(nr,kr,k); s:=abs(kr-nr)/(k); for i:=0 to k do begin r:=nr+i*s; n:=nu(r); ksu:= podbor(a, b); u:=getU(ksu,n,r); writeln(i,'. ',(r*1e13),' - ',u/1000000); end; end. ```