Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Given: >> x = 1:1/8:L/2 What value of L results in the following output 1.000

ID: 1863269 • Letter: 1

Question

1.
Given: >> x = 1:1/8:L/2 What value of L results in the following output 1.0000    1.1250    1.2500    1.3750    1.5000    1.6250    1.7500    1.8750  2.0000 What would be the outcome if L= would result in the sequence ending at 1.625

2.
Given a pattern of numbers write a script that would generate that sequence.

3.

given an infinite series of terms determine write MATLAB code to generate the sum of n terms.



1.
Given: >> x = 1:1/8:L/2 What value of L results in the following output 1.0000    1.1250    1.2500    1.3750    1.5000    1.6250    1.7500    1.8750  2.0000 What would be the outcome if L= would result in the sequence ending at 1.625

2.
Given a pattern of numbers write a script that would generate that sequence.

3.

given an infinite series of terms determine write MATLAB code to generate the sum of n terms.



Given a pattern of numbers write a script that would generate that sequence.

3.

given an infinite series of terms determine write MATLAB code to generate the sum of n terms.


generate the sum of n terms.

Explanation / Answer

1) the value of L=2*last value=2*2=4.0000

at L=2*1.625=3.2500 the result of the sequence ends at 1.625

2) x=1:1/8:4/2 to generate first sequence

x1=1:1/8:3.25 to generate second sequence

3)the sum of n terms if given series is arithmetic progration is given by Sn = (n/2)[2a +(n -1)d]

script

n=input('enter the n value');

a=input('enter the first element');

d=input('enter the common differnce');

s=(n/2)*[2a +(n -1)*d]

display(s)