# When a rubber is stretched during a tensile test, its elongation is initially proportional to the applied

###### Question:

(a) Curve-fit the data with a forth order polynomial. Make a plot of the data points and the polynomial. Use the polynomial to estimate the force when the rubber specimen was 11.5cm long.

(b) Fit the data with spline interpolation (use MATLAB built-in function interp1). Make a plot that shows the data points and a curve made by interpolation. Use interpolation to estimate the force when the rubber specimen was 11.5cm long

Table 1

Elongation vs. force for rubber during tensile test.

Elongation (cm) Force (KN)

0 0

1.2 0.6

2.4 0.9

3.6 1.16

4.8 1.18

6.0 1.19

7.2 1.24

8.4 1.48

9.6 1.92

10.8 3.12

12.0 4.14

13.2 5.34

14.4 6.22

15.6 7.12

16.8 7.86

18.0 8.42

## Answers

I don’t feel like reading

Excel attached with the solution.

Step-by-step explanation:

Mean

[tex]\bar{x}=\frac{\sum x_{i}}{n}[/tex]

Standard deviation

[tex]sd=\sqrt{\frac{\sum (x_{i}-\bar{x})}{n-1}}[/tex]

Confidence interval

[tex]\bar{x} \pm z_{\alpha}*sd/\sqrt{n}[/tex]

The formulas used are in the Excel file attached.

see explaination

Explanation:

Program source code below:

def displayNumbers():

string = ""

num = 0

#first loop to control 5 rows

for i in range(5):

#second loop to control columns

for j in range(5):

str1 = str(num)

# str1.ljust(5) function to left justify output string

#appending number in resulting string

string = string + str1.ljust(5)

#updating num for next iteration

num = num + 1

#new line after each row to display pattern correctly

string = string + "\n"

return string

def pattern():

string = ""

num = 0

#first loop to control 1-4 rows

for i in range(5):

#In second loop to control 5 columns

for j in range(5):

str1 = str(num)

if num == 2:

num = num -2

else :

num = num + 1

# str1.ljust(5) function to left justify output string

string = string + str1.ljust(5)

# new line after each row to display pattern correctly

string = string + "\n"

return string

#Function calls

print('\033[4m')

print('\033[1m{}\033[0m'.format('Output 1:\n'))

print(displayNumbers())

print('\033[4m')

print('\u0332\033[1m{}\033[0m'.format('Output 2:\new'))

print(pattern())

See attachment for sample output and screenshot.

Nb: Always refer to screenshot if there is an indentation error.

[tex]Question 4: Write the code for a for-loop that prints the following outputs. You should be able to d[/tex]

[tex]Question 4: Write the code for a for-loop that prints the following outputs. You should be able to d[/tex]

[tex]Question 4: Write the code for a for-loop that prints the following outputs. You should be able to d[/tex]

what do you need I am confused..?

what is a question I was confused

X - 4 < 5

Let's add 4 to each side

x < 9

I can't graph it for you, but I can tell you that you would put a point at 8, and a line (with an arrow) extending to the left. This is because x could be any value less than 9.