View source: R/is_consistent.R
is_consistent | R Documentation |
Check if the matrix equation Ax = b is consistent
is_consistent(A, b)
A |
The matrix A |
b |
The vector b |
This function returns TRUE if there is a solution to the equation Ax = b and FALSE if there is not a solution to the equation Ax = b
library(dasc2594) A <- diag(2) b <- 1:2 # expect TRUE is_consistent(A, b) A <- matrix(c(1, 0, 1, 0), 2, 2) b <- 1:2 # expect FALSE is_consistent(A, b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.