CNOT3_20 <- function(a){
cnot3_20=matrix(c(1,0,0,0,0,0,0,0,
0,0,0,0,0,1,0,0,
0,0,1,0,0,0,0,0,
0,0,0,0,0,0,0,1,
0,0,0,0,1,0,0,0,
0,1,0,0,0,0,0,0,
0,0,0,0,0,0,1,0,
0,0,0,1,0,0,0,0),nrow=8,ncol=8)
result = cnot3_20 %*% a
result
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.