@@ -9,15 +9,15 @@ def euler(f, a, b, n, ya):
99 Solve the IVP from the Euler method.
1010
1111 Args:
12- f: function f(x).
13- a: the initial point.
14- b: the final point.
15- n: number of intervals.
16- ya: initial value .
12+ f ( function): equation f(x).
13+ a (float) : the initial point.
14+ b (float) : the final point.
15+ n (int) : number of intervals.
16+ ya (numpy.ndarray) : initial values .
1717
1818 Returns:
19- vx: an array containing x values.
20- vy: an array containing y values (solution of IVP).
19+ vx (numpy.ndarray): x values.
20+ vy (numpy.ndarray): y values (solution of IVP).
2121 """
2222 vx = np .zeros (n )
2323 vy = np .zeros (n )
@@ -50,16 +50,16 @@ def taylor2(f, df1, a, b, n, ya):
5050 Solve the IVP from the Taylor (Order Two) method.
5151
5252 Args:
53- f: function f(x).
54- df1: 1's derivative of function f(x).
55- a: the initial point.
56- b: the final point.
57- n: number of intervals.
58- ya: initial value .
53+ f ( function): equation f(x).
54+ df1 (function) : 1's derivative of equation f(x).
55+ a (float) : the initial point.
56+ b (float) : the final point.
57+ n (int) : number of intervals.
58+ ya (numpy.ndarray) : initial values .
5959
6060 Returns:
61- vx: an array containing x values.
62- vy: an array containing y values (solution of IVP).
61+ vx (numpy.ndarray): x values.
62+ vy (numpy.ndarray): y values (solution of IVP).
6363 """
6464 vx = np .zeros (n )
6565 vy = np .zeros (n )
@@ -90,18 +90,18 @@ def taylor4(f, df1, df2, df3, a, b, n, ya):
9090 Solve the IVP from the Taylor (Order Four) method.
9191
9292 Args:
93- f: function f(x).
94- df1: 1's derivative of function f(x).
95- df2: 2's derivative of function f(x).
96- df3: 3's derivative of function f(x).
97- a: the initial point.
98- b: the final point.
99- n: number of intervals.
100- ya: initial value .
93+ f ( function): equation f(x).
94+ df1 (function) : 1's derivative of equation f(x).
95+ df2 (function) : 2's derivative of equation f(x).
96+ df3 (function) : 3's derivative of equation f(x).
97+ a (float) : the initial point.
98+ b (float) : the final point.
99+ n (int) : number of intervals.
100+ ya (numpy.ndarray) : initial values .
101101
102102 Returns:
103- vx: an array containing x values.
104- vy: an array containing y values (solution of IVP).
103+ vx (numpy.ndarray): x values.
104+ vy (numpy.ndarray): y values (solution of IVP).
105105 """
106106 vx = np .zeros (n )
107107 vy = np .zeros (n )
@@ -133,15 +133,15 @@ def rk4(f, a, b, n, ya):
133133 Solve the IVP from the Runge-Kutta (Order Four) method.
134134
135135 Args:
136- f: function f(x).
137- a: the initial point.
138- b: the final point.
139- n: number of intervals.
140- ya: initial value .
136+ f ( function): equation f(x).
137+ a (float) : the initial point.
138+ b (float) : the final point.
139+ n (int) : number of intervals.
140+ ya (numpy.ndarray) : initial values .
141141
142142 Returns:
143- vx: an array containing x values.
144- vy: an array containing y values (solution of IVP).
143+ vx (numpy.ndarray): x values.
144+ vy (numpy.ndarray): y values (solution of IVP).
145145 """
146146 vx = np .zeros (n )
147147 vy = np .zeros (n )
@@ -179,15 +179,15 @@ def rk4_system(f, a, b, n, ya):
179179 Solve from Runge-Kutta (Order Four) method.
180180
181181 Args:
182- f: an array of functions f(x).
183- a: the initial point.
184- b: the final point.
185- n: number of intervals.
186- ya: an array of initial values.
182+ f (numpy.ndarray): equations f(x).
183+ a (float) : the initial point.
184+ b (float) : the final point.
185+ n (int) : number of intervals.
186+ ya (numpy.ndarray): initial values.
187187
188188 Returns:
189- vx: an array containing x values.
190- vy: an array containing y values (solution of IVP).
189+ vx (numpy.ndarray): x values.
190+ vy (numpy.ndarray): y values (solution of IVP).
191191 """
192192 m = len (f )
193193
0 commit comments