Muscat.AugmentedMatrix (muscat v0.3.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
rref_result() ::
{:ok, solution()}
| {:error, :no_solution}
| {:error, :infinite_solutions}
| {:error, :approximate_solution}
Specs
solution() :: [Muscat.Fraction.t() | float()]
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()) :: rref_result()
Reduce a augmented matrix into reduced row echelon form and give the equation solution.
Options
:value_type- The result value type,:float(default),:fraction.:precision- If theresult_typeis:float, round the float.