Q 2(a) [8 Marks] Solve the following three equations using the Thomas Algorithm (also known as...
Calculate the equilibrium constant of the overall reaction: 2A+ 3B 440 given that these equations are known: Keq = ? Rxn 1 Rxn 2 2A + 2B 4C+D 3C+DAB Keqi = 20 Keq2 = 5 a. 4 b. 15 c. 25 d. 100 e. 320
2. Calculate the equilibrium constant of the overall reaction: 2A+ 3B 4C given that these equations are known: Keq = ? Rxn 1 Rxn 2 2A + 2B + C + D 3C+DAB Keql = 20 Keq2 = 5 a. 4 b. 15 c. 25 d. 100 e. 320
Question 4 (4 marks). a. Consider the decision problems PROBLEMA and PROBLEMB. PROBLEMA is known to be NP- Complete Your friend has found a polynomial time reduction from PROBLEMB to PROBLEMA. Another friend of yours has found an algorithm to solve any instance of PROBLEMB in polynomial time Have your friends proved that P=NP? Explain your answer. [2 marks b. Consider the following algorithm, which computes the value of the nth triangle number. function TRIANGLENUMBER(n) result 0 for i in...
R=8
Question 2 (20 marks) (a) Use Gauss-Jordan elimination to solve the system of linear equations xi-x2 + 2x, 12x,-3x2 + 3x, + 4x, + 2x, = R+I, 3x - 4x + 5x, + 2x, + 4x5 = R+3. (b) The prices of an economic, an upgraded and a deluxe set meal in Dave's Kitchen are S32, $40 and $56 respectively. If the revenue of selling 100 sets of meals is $5,000, find the number of set meals of each...
MATLAB
I need Matlab ouput
4. Solve the following linear set of equations using the script given below. 53 1 1] x) A=1 3 1 X=(x₂ , B={10} [1 1 3] (45) x=zeros(3,1); AB=[A B] n=size(A,1); for i=1:n-1 P=-(AB(+1:end,i)/AB(1,1)) AB(i+1:end,i:end)=AB(i+1:end,i:end)+P*AB(i,i:end) end for i=n:-1:1 x(1,:)-(AB(i,n+1:end)-AB(1,i+1:n)*x(i+1:n:)YAB(1,1) end
Sorting Sort the following array using the quick sort algorithm: (4 Marks) a. 12 26 8 9 7 0 4 Pivot selection is defined to be the first element of each sub-list. Show the array before and after each quicksort round (when the array is partitioned after placing the pivot at its correct position). Also, clearly highlight the pivot in each partition b. Consider an unsorted array of integers of size n. Write a Java program to arrange the array...
PLEASE SOLVE USING MATLAB
As shown, two weights are in state of static equilibrium, hanging from three strings of known lengths. Write 6 equations and solve them in MATLAB to determine the angles (0,, θ2,93) and tensions (T. T2, T3) of the strings. Hint: We can write 4 equations of equilibrium based on F 0and Fy- 0 for each mass. Two more equations are obtained by writing the displacement compatibility relations L1 cos(01)+L2cos(02) +Lacos(03) 8 L1 sin(θ 1 ) 0...
Answer the following questions: Q-1. [10+10 marks] a) Let A = [1 2] . Find all values of a for which A’ is symmetric. az 03 b) Let A = b. bz b3 and B = 1 bz - az bz-az b-a. If|A| = C3] LC3 + 3b3 C2 + 3b2 4 + 3b,] -4, find BI. 11 2a3 202 2a C1 C2
C++ , no ptrs or struct Solve a system of equations using the Gaussian Elimination technique. The matrix will be 10X10 or smaller and will contain floats. Then read in the matrix. Then read in the original answer column (see below for example). Then using the element location 1,1 of the matrix (note I am using the mathematics convention of starting numbering at 1), you will change row 1 and also eliminate the other elements in column 0 using Gaussian...
Using the string frequency equations when no tension in known, solve the following problem. You have a wire material that has a (volume) density of 7500 kg/m^3 and a yield stress of 0.43 MPa (1 MPa = 1 * 10^6 N/m^2). Find a combination of tension and a linear mass density of the wire that will cause the 1 m long wire to have a fundamental frequency of: 2 Hz 3 Hz 4 Hz without failing. In other words, at...