Muscat.AugmentedMatrix (muscat v0.2.0) View Source
Link to this section Summary
Functions
Create augmented matrix by augmented matrix list
Create augmented matrix by coefficient matrix list and constant column list
Reduce a augmented matrix into reduced row echelon form
and give the equation solution.
Link to this section Types
Specs
element() :: Muscat.Fraction.fraction_tuple() | integer()
Specs
matrix() :: [Muscat.Matrix.Cell.t(), ...]
Specs
solution() :: [Muscat.Fraction.t() | float() | :any]
Link to this section Functions
Specs
Create augmented matrix by augmented matrix list
Specs
new( coefficient_matrix :: [[element(), ...], ...], constant_column :: [element(), ...] ) :: [matrix(), ...]
Create augmented matrix by coefficient matrix list and constant column list
Specs
rref(augmented_matrix :: matrix(), opts :: keyword()) :: {:ok, solution()} | {:error, :no_solution} | {:error, :infinite_solutions} | {:error, :approximate_solution}
Reduce a augmented matrix into reduced row echelon form
and give the equation solution.
The function name rref
is taken from Matlab
.
Options
:value_type
- The result value type,:float
(default),:fraction
.:precision
- If theresult_type
is:float
, round the float.