Skip to content

Commit

Permalink
updated function headers
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaskis committed Jul 6, 2022
1 parent 6c04080 commit 0bdf58f
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 24 deletions.
Binary file modified INSTALL/IVP Solver Toolbox.mltbx
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/example_brute_force.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% Example of a "brute force" method for solving IVPs.
%
% Copyright © 2021 Tamas Kis
% Last Update: 2022-06-07
% Last Update: 2022-07-06
% Website: https://tamaskis.github.io
% Contact: tamas.a.kis@outlook.com

Expand Down
2 changes: 1 addition & 1 deletion examples/example_define_ivp.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% Example of defining an IVP.
%
% Copyright © 2021 Tamas Kis
% Last Update: 2022-06-07
% Last Update: 2022-07-06
% Website: https://tamaskis.github.io
% Contact: tamas.a.kis@outlook.com

Expand Down
2 changes: 1 addition & 1 deletion examples/example_lorenz.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
% the thumbnail image for the IVP solver toolbox.
%
% Copyright © 2021 Tamas Kis
% Last Update: 2022-06-07
% Last Update: 2022-07-06
% Website: https://tamaskis.github.io
% Contact: tamas.a.kis@outlook.com

Expand Down
2 changes: 1 addition & 1 deletion examples/example_matrix_ode.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
% equation).
%
% Copyright © 2021 Tamas Kis
% Last Update: 2022-06-07
% Last Update: 2022-07-06
% Website: https://tamaskis.github.io
% Contact: tamas.a.kis@outlook.com

Expand Down
2 changes: 1 addition & 1 deletion examples/example_pass_extra.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% Example of passing extra parameters to functions.
%
% Copyright © 2021 Tamas Kis
% Last Update: 2022-06-07
% Last Update: 2022-07-06
% Website: https://tamaskis.github.io
% Contact: tamas.a.kis@outlook.com

Expand Down
2 changes: 1 addition & 1 deletion examples/example_return_extra.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% Example of returning extra parameters from an IVP solution.
%
% Copyright © 2021 Tamas Kis
% Last Update: 2022-06-07
% Last Update: 2022-07-06
% Website: https://tamaskis.github.io
% Contact: tamas.a.kis@outlook.com

Expand Down
2 changes: 1 addition & 1 deletion examples/example_waitbar.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
% Examples demonstrating how to use waitbar.
%
% Copyright © 2021 Tamas Kis
% Last Update: 2022-06-07
% Last Update: 2022-07-06
% Website: https://tamaskis.github.io
% Contact: tamas.a.kis@outlook.com

Expand Down
2 changes: 1 addition & 1 deletion toolbox/doc/doc_IVP.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
% doc_IVP tech
%
% Copyright © 2021 Tamas Kis
% Last Update: 2022-06-07
% Last Update: 2022-07-06
% Website: https://tamaskis.github.io
% Contact: tamas.a.kis@outlook.com
%
Expand Down
2 changes: 1 addition & 1 deletion toolbox/generatingequations/AB_coefficients.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
% INPUT:
% ------
% m - (1×1 double) order of Adams-Bashforth predictor
% print - (char) (OPTIONAL) prints coefficients if input as 'print'
% print - (OPTIONAL) (char) prints coefficients if input as 'print'
%
% -------
% OUTPUT:
Expand Down
2 changes: 1 addition & 1 deletion toolbox/generatingequations/AB_predictor.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
% INPUT:
% ------
% m - (1×1 double) order of Adams-Bashforth predictor
% print - (char) (OPTIONAL) prints coefficients if input as 'print'
% print - (OPTIONAL) (char) prints coefficients if input as 'print'
%
% -------
% OUTPUT:
Expand Down
2 changes: 1 addition & 1 deletion toolbox/generatingequations/AM_coefficients.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
% INPUT:
% ------
% m - (1×1 double) order of Adams-Moulton corrector
% print - (char) (OPTIONAL) prints coefficients if input as 'print'
% print - (OPTIONAL) (char) prints coefficients if input as 'print'
%
% -------
% OUTPUT:
Expand Down
2 changes: 1 addition & 1 deletion toolbox/generatingequations/AM_corrector.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
% INPUT:
% ------
% m - (1×1 double) order of Adams-Moulton corrector
% print - (char) (OPTIONAL) prints coefficients if input as 'print'
% print - (OPTIONAL) (char) prints coefficients if input as 'print'
%
% -------
% OUTPUT:
Expand Down
14 changes: 7 additions & 7 deletions toolbox/generatingequations/tableau2eqns.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
% INPUT:
% ------
% T - ((s+1)×(s+1) double) Butcher tableau
% name - (1×1 string) (OPTIONAL) name of the method
% type - (char) (OPTIONAL) print coefficients as 'decimal' or
% name - (OPTIONAL) (1×1 string) name of the method
% type - (OPTIONAL) (char) print coefficients as 'decimal' or
% 'fraction' (defaults to 'fraction')
%
% -----
Expand Down Expand Up @@ -72,7 +72,7 @@ function tableau2eqns(T,name,type)
% k terms with coefficients as fractions
if strcmpi(type,'fraction')
for i = 1:s

% first half of the argument of f(__,__)
[nl,dl] = rat(c(i));
if nl == 0
Expand All @@ -86,7 +86,7 @@ function tableau2eqns(T,name,type)
elseif (nl ~= 1) && (dl ~= 1)
fprintf("k%d = f(t(n) + %dh/%d, y(n)",i,nl,dl);
end

% second half of the argument of f(__,__)
for j = 1:s
[nr,dr] = rat(A(i,j));
Expand All @@ -108,11 +108,11 @@ function tableau2eqns(T,name,type)
end
fprintf(")\n");
end

% k terms with coefficients as decimals
else
for i = 1:s

% first half of the argument of f(__,__)
if c(i) == 0
fprintf("k%d = f(t(n), y(n)",i);
Expand All @@ -121,7 +121,7 @@ function tableau2eqns(T,name,type)
else
fprintf("k%d = f(t(n) + %.8fh, y(n)",i,c(i));
end

% second half of the argument of f(__,__)
for j = 1:s
if A(i,j) > 0
Expand Down
2 changes: 1 addition & 1 deletion toolbox/ivpsolver/expand_ivp_arrays.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
% have become full.
%
%==========================================================================
function [t_new,y_new] = expand_solution_arrays(t,y)
function [t_new,y_new] = expand_ivp_arrays(t,y)

% number of subintervals
N = length(t)-1;
Expand Down
4 changes: 2 additions & 2 deletions toolbox/ivpsolver/solve_ivp.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
% (C : ℝ×ℝᵖ → B)
% y0 - (p×1 double) initial condition, y₀ = y(t₀)
% h - (1×1 double) step size
% method - (char) (OPTIONAL) integration method --> 'Euler', 'RK2',
% method - (OPTIONAL) (char) integration method --> 'Euler', 'RK2',
% 'RK2 Heun', 'RK2 Ralston', 'RK3', 'RK3 Heun', 'RK3 Ralston',
% 'SSPRK3', 'RK4', 'RK4 Ralston', 'RK4 3/8', 'AB2', 'AB3',
% 'AB4', 'AB5', 'AB6', 'AB7', 'AB8', 'ABM2', 'ABM3', 'ABM4',
% 'ABM5', 'ABM6', 'ABM7', 'ABM8' (defaults to 'RK4')
% wb - (1×1 logical or char) (OPTIONAL) waitbar parameters
% wb - (OPTIONAL) (1×1 logical or char) waitbar parameters
% --> input as "true" if you want waitbar with default
% message displayed
% --> input as a char array storing a message if you want a
Expand Down
2 changes: 1 addition & 1 deletion toolbox/matrixivp/ivpsol_vec2mat.m
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
% INPUT:
% ------
% y - ((N+1)×pr double) matrix storing time history of state vector
% p - (1×1 double) (OPTIONAL) number of rows of state matrix
% p - (OPTIONAL) (1×1 double) number of rows of state matrix
%
% -------
% OUTPUT:
Expand Down
2 changes: 1 addition & 1 deletion toolbox/matrixivp/odefun_mat2vec.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
% F - (1×1 function_handle) dM/dt = F(t,M) --> multivariate,
% matrix-valued function (F : ℝ×ℝᵖˣʳ → ℝᵖˣʳ) defining
% matrix-valued ODE
% p - (1×1 double) (OPTIONAL) number of rows of state matrix
% p - (OPTIONAL) (1×1 double) number of rows of state matrix
%
% -------
% OUTPUT:
Expand Down

0 comments on commit 0bdf58f

Please sign in to comment.