R/norm.R

Defines functions norm

Documented in norm

#Compute the norm of wavefunction
#' @export
norm <- function(v){
	sqrt(inner(v,v))[1]	#which is the square root of the inner product with itself
}

Try the QuantumOps package in your browser

Any scripts or data that you put into this service are public.

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.