Here's a MATLAB solution to a simple algebra problem (if solving 6 simultaneous equations is your cup of tea)
% A football stadium has a capacity of 100,000 attendees
% Ticket prices:
% Student = $25
% Alumni = $40
% Faculty = $60
% Public = $70
% Veterans = $32
% Guests = $ 0
% A full capacity game netted $4,987,000
% Let S = number of students, A = number of alumni, F = number of faculty
% P = number of public, V = number of veterans, G = number of guests
% S A F P V G = value
M = [ 1 1 1 1 1 1 100000; ... % total number of attendees
25 40 60 70 32 0 4897000; ... % total revenue
0 1 -1 0 0 0 11000; ... % 11000 more alumni than faculty
0 1 0 1 -10 0 0; ... % public + alumni = 10 * veterans
-1 1 1 0 0 0 0; ... % alumni + faculty = students
1 0 1 0 -4 -4 0]; % faculty + students = 4 (guests + veterans)
A = M(:,1:6); % extract 6x6 matrix
B = M(:,7); % extract value column vector
P = M(2,1:6); % ticket price by attendee type
R = inv(A)*B; % compute number of attendees by type
T = sum(R); % check total attendees = 100,000 CHECK
U = P*R; % total revenue = 4,897,000 CHECK
V = R'.*P; % revenue by attendee type - transpose R from 6x1 to 1x6
% then do element by element multiplication
%
% fancy output, all previous default output semicoloned
%
label = {'Students' 'Alumni' 'Faculty' 'Public' 'Veterans' 'Guests'};
for i = 1:6
fprintf('%-8s%7d @ %2d = %7d\n',string(label(i)),...
round(R(i)),...
M(2,i),...
round(V(i)))
end
fprintf('\nTotals %6d %8d\n',round(T), round(U))
Results:
Students 25000 @ 25 = 625000
Alumni 18000 @ 40 = 720000
Faculty 7000 @ 60 = 420000
Public 42000 @ 70 = 2940000
Veterans 6000 @ 32 = 192000
Guests 2000 @ 0 = 0
Totals 100000 4897000
A statement like
A = M(:,1:6); % extract 6x6 matrix
means fill a matrix A with all the rows of matrix M but only columns 1 through 6. I created M with 7 columns so I could document the output of each row. Then I break it into a 6x6 and 6x1 matrix to solve the equations.
It is much easier to start with something like this than to jump into differential equations. The syntax of MATLAB/Octave isn't all that simple. About the only way to learn it is to write it and slog through the errors.
There are hundreds of MATLAB books and I have a dozen or so. Pick one, any one, and work through some problems. Many books are of the "MATLAB For Physics" or other specific application.
Same story with Python - only far worse. How Python is taught is highly dependent on a supposed application. The Python syntax idea of using starting column to denote code level is wretched. Spaces shouldn't be a syntactic element. Nevertheless, Python is important, not because of the language, but because of the libraries.
Again, there are hundreds of books on Python and they too will tend to be application oriented. "PYTHON for Physics", that kind of thing. That "...Deep Learning..." book I linked above is an example.