Nothing
matrix.trace <- function( x )
{
###
### this function returns the trace of the given square matrix
###
### parameters
### x = a numeric square matrix object
###
if ( !is.square.matrix( x ) )
stop( "argument x is not a square matrix" )
return( sum( diag( x ) ) )
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.