Question: [ 1 ] Your Problem: delta.x Suppose n = 6 , then #delta.x a = b = n = delta. write the formula here _

[1] Your Problem: delta.x
Suppose n=6, then
#delta.x
a=
b=
n=
delta. write the
formula here_)
Constructing the Subintervals:
Indexing out elements from a vector:
R command: vectorname[i] where i= number and gives the ith position in the vector Y [2:7] will give you all components in vector Y, in the second, third, ... positions
Example: If x=c(9,8,7,6,5,4)
x[1]=9
x[1:5]=9,8,7,6,5
x[2:6]=8,7,6,5,4
Next: we need to repeat this
To do this we need to learn how to use a "for loop" in R>>
Explanation of R code: "for" loop:for loops let us repeat (loop) through the elements in a vector and run the same code on each element. We will illustrate with examples
Example 1: In this example: let j act as a variable and square it:
 [1] Your Problem: delta.x Suppose n=6, then #delta.x a= b= n=

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!