| mean.Expression | R Documentation | 
The arithmetic mean of an expression.
## S3 method for class 'Expression'
mean(x, trim = 0, na.rm = FALSE, ...)
| x | An Expression object. | 
| trim | (Unimplemented) The fraction (0 to 0.5) of observations to be trimmed from each end of  | 
| na.rm | (Unimplemented) A logical value indicating whether missing values should be removed. | 
| ... | (Unimplemented) Optional arguments. | 
An Expression representing the mean of the input.
A <- Variable(2,2)
val <- cbind(c(-5,2), c(-3,1))
prob <- Problem(Minimize(mean(A)), list(A == val))
result <- solve(prob)
result$value
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.