jstestfunction _ function ()
{
"a simple function"
}
After copying this function into S-Plus, you should type
the function name (without the ``()'') such that S-Plus displays
the code of this function. Then you call the function
by typing in the function name (this time with the ``()'')
and S-Plus will produce the result.
> ### here is the body of the function
> jstestfunction
function()
{
"a simple function"
}
> ### here the function is called without
### any parameter
> jstestfunction()
[1] "a simple function" ### and this is the result
>
x0 _ 1 x1 _ matrix(1:10, 2, 5) x2 _ matrix(1:9, 3, 3) x3 _ matrix(c(1, 2, 3, 2, 2, 2, 3, 2, 3), 3, 3)(5 Points)