Lectures 12-16 Flashcards
ODE 45
applies a variable-step classical Runge-Kutta method that is h^4 accurate. Should be the first method to try
ode23
used for solving moderatley “stiff” equations (example - mass spring dampening with a high spring constant)
ode15s
should be used for solving stiff equations - potentially less acccurate
What is the set up for an ode
[x,y]=ode45(‘myfunc’,tspan,y1)
y1 = initial value
tspan = vector limiting the domain for the problem (need to define)(vector)
What are some causes of not being a linear equation?
squared term
two variables multiplied together
What are the three possible outcomes when solving a linear equation?
- there is a unique solution
- there is a non-unique solution (family of solutions)
- there is no explicit solution
What are the commands do to A^-1 of the equation Ax=b?
x=inv(A)*b
x=A\b
What does a unique solution to a system require?
the existence of the inverse A^-1
Rank
the total number of linearly independent rows in a matrix
Singular
when a matrix has linearly dependent rows
What is another code of inv if the the solution is NaN or Inf
pinv(A)
sample set
a population , numerical sequence of probability and statitics
mean
average of a sample set, the function ‘ mean ‘ is used
median
the value which separates a sample set between a lower half and an upper half. matlab code = median
standard deviation
the neighborhood about the mean value which captures 68% of the population