vuoi
o PayPal
tutte le volte che vuoi
EXERCISE NUMBER FOUR
- Let x <- and y <- Consider the functions g(x) = and h(x) = Plot both the
point function. exponential line.
functions and the points defined by x and y on the interval [a, b]. Which of the following sentence is true?
The curve is mostly below the line and ... points are below the graph of the exponential
‣ the curve is mostly above the line and ... points are below the graph of the exponential
‣ x <- point
‣ y <- function
g <- function(x) exp(...)
‣ h <- function(x) line
curve(g,a,b)
‣ curve(h,a,b,add=T,col=2)
analyse the graph
points(x,y):
EXERCISE NUMBER FIVE
First version : vector
- Type and press enter. Then immediately store in a vector normal pseudo-random
set.seed(...) 100
numbers with mean and standard deviation . Compute the sum of components of the vector,
m sd b
starting from position .
a
set.seed(...)
‣ v <- rnorm(100,m,sd)
‣ sum(v[a:((a+b)-1)])
‣