Question: [ 1 ] Your Problem: delta.x Suppose n = 6 , then #delta.x a = b = n = delta. write the formula here _
Your Problem: delta.x
Suppose then
#delta.x
delta. write the
formula here
Constructing the Subintervals:
Indexing out elements from a vector:
command: vectornamei where number and gives the ith position in the vector Y : will give you all components in vector in the second, third, positions
Example: If
:
:
Next: we need to repeat this
To do this we need to learn how to use a "for loop" in
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 : In this example: let j act as a variable and square it:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
