Easy fast access to common apps or programs
Answer:
System of linear equations is solved below and explained in detail.
Explanation:
Part a:
M = [1 3 5 2; 2 -4 7 -3; 0 -4 -7 3; 5 -3 2 1];
c = [7; -3; -1; 0];
Part b:
The statement used for the solution of system of linear equation will be:
X = linsolve(M,c)
where X will give the values of x1, x2, x3, x4 respectively.
Part c:
The system is solved in matlab using above equation and the results are attached in a file.
The values for X are:
x1 = -2/7
x2 = 3/7
x3 = 4/7
x4 = 11/7
Maybe like 3-5 I think im right
Answer:
1 35
Explanation:
* There is a little typo in printf. It should be "\n".
Initially, the value of the first is 1, and the value of the second is 2. Then, do_something(&second, first) is called. The value of the <em>first</em> will still be 1. However, there is a call by reference for <em>second </em>variable. That means the change made by the function <em>do_something</em> will affect the value of the <em>second</em> variable.
When you look at the calculation inside the <em>do_something</em> function, you may see that value of the <em>second</em> will be 35.