Question: 7. Create one script file which performs the following tasks. a. Create a vector of equally spaced vectors starting at 0, ending at 15, and

7. Create one script file which performs the following tasks. a. Create a vector of equally spaced vectors starting at 0, ending at 15, and incremented by 0.2. Use the function file HW3_1 to calculate the value of the equation given in Question 1 for each value in the vector. b. Use the function file HW3_1 to calculate the value of six squared, divided by two, plus five. c. Define a variable named A which has a value of five, Use the function file HW3_2 to find the value of the polynomial given in Question 2 when the variable A is the argument into the function. d. Define a new variable named B which is a vector that starts at 4, ends at 54, and contains 16 values. Using the appropriate function file, find the value of the polynomial from Question 2 for each value in B. e. Write a line of code which saves the variables named yl and y2' as the return of the function HW3_3 when a = 4, b = 2, and c = 10. f. Use the ARRHENIUS function created in question 4 to find the rate constant when T= 25.43. g. Use the ARRHENIUS_2 function to calculate the rate constant given the following parameters: ko = [0 10 100 100), Q = 6000 cal/mol, R = 1.987 cal/mol*K, ko =1000 min-1, T = 300 h. Use the function file idealGas to find the temperature of a gas given the parameters below using both the ideal gas law and the van der Waals modification. P=0 bar - 500 bar (increment by 10 bar) n = 5 mol V=1L 7. Create one script file which performs the following tasks. a. Create a vector of equally spaced vectors starting at 0, ending at 15, and incremented by 0.2. Use the function file HW3_1 to calculate the value of the equation given in Question 1 for each value in the vector. b. Use the function file HW3_1 to calculate the value of six squared, divided by two, plus five. c. Define a variable named A which has a value of five, Use the function file HW3_2 to find the value of the polynomial given in Question 2 when the variable A is the argument into the function. d. Define a new variable named B which is a vector that starts at 4, ends at 54, and contains 16 values. Using the appropriate function file, find the value of the polynomial from Question 2 for each value in B. e. Write a line of code which saves the variables named yl and y2' as the return of the function HW3_3 when a = 4, b = 2, and c = 10. f. Use the ARRHENIUS function created in question 4 to find the rate constant when T= 25.43. g. Use the ARRHENIUS_2 function to calculate the rate constant given the following parameters: ko = [0 10 100 100), Q = 6000 cal/mol, R = 1.987 cal/mol*K, ko =1000 min-1, T = 300 h. Use the function file idealGas to find the temperature of a gas given the parameters below using both the ideal gas law and the van der Waals modification. P=0 bar - 500 bar (increment by 10 bar) n = 5 mol V=1L
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
