Question: R Programming Language 3. Now, write a function solveLin() that will accept six numbers as formal arguments:u, v, r, s along with b1 and b2.

R Programming Language

3. Now, write a function solveLin() that will accept six numbers as formal arguments:u, v, r, s along with b1 and b2. Provided an answer exists, the function should return the answer to the following set of equations:

ux + vy = b1

rx + sy = b2

That is, what are the values for x and y that solve these equations.

Check to make sure your function is correct by calling the function with the parameters given in Question 2. That is the call solveLin(u=3,v=2,r=1,s=1,b1=12,b2=5) should result in the following printed out

x = 2

y = 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!