def draw_N1(self, a, j, da=0.001): a += da s1 = Solver(a, j) s2 = Solver(a, j + 1) x1 = [] y1 = [] x2 = [] y2 = [] while a < s1.inB**(-1): x1.append(a) y1.append(s1.calc_N1()) a += da s1.reload(a, j) a = 0 while a < s2.inB**(-1): x2.append(a) y2.append(s2.calc_N1()) a += da s2.reload(a, j + 1) points = [] points.append(((x1, y1), 'tmp.dat', 'N1(a)')) points.append(((x2, y2), 'tmp2.dat', 'N1(2)(a)')) self._draw( points=points, title="График зависимости N1(a) и N1(2)(a)", )
def draw_N1_Nx1(self, a, j, da=0.001): a += da s = Solver(a, j) x1 = [] y1 = [] x2 = [] y2 = [] while a < s.inB**(-1): x1.append(a) x2.append(a) y1.append(s.calc_N1()) y2.append(s.calc_Nx1()) a += da s.reload(a, j) points = [] points.append(((x1, y1), 'tmp.dat', 'N1(a)')) points.append(((x2, y2), 'tmp2.dat', 'N*1(a)')) self._draw( points=points, title="График зависимости N1(a) и N*1(a)", )