is_unique | R Documentation |
Check if the matrix equation Ax = b has a unique solution
is_unique(A, b)
A |
The matrix A |
b |
The vector b |
This function returns TRUE if there is a unique solution to the equation Ax = b and FALSE if there is not a unique solution to the equation Ax = b. If there is no solution to the system of equations, the function will return an error.
library(dasc2594) A <- diag(2) b <- 1:2 # expect TRUE is_consistent(A, b) # expect TRUE is_unique(A, b) A <- matrix(c(1, 0, 0, 1, 1, 1), 2, 3) b <- 1:2 # expect FALSE is_unique(A, b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.