Question

In: Advanced Math

Use R to solve: Find the approximate solution x' to : 0.89x1 + 0.53x2 = 0.36...

Use R to solve:

Find the approximate solution x' to :

0.89x1 + 0.53x2 = 0.36

0.47x1 + 0.28x2 = 0.19

Find the error x'-x* between the computed solution and the true solution.

Compare the size of this error with the size of the residual r=b-Ax'

Solutions

Expert Solution

The R program to find the approximate solution is as follows:-

INPUT:-

#We crarete a 2*2 matrix A which is the augmented matrix of the system of linear equations and b is the R.H.S of system of #linear equations,We use ginv() function from MASS library to get the generalised inverse of A
A <- matrix(c(0.89,0.47,0.53,0.28),2,2)
b <-c(0.36,0.19)
library(MASS)
ginv(A) %*% b

OUTPUT:-

[,1]
[1,] 1
[2,] -1

Hence our approximate solution is x'=(1, -1)T so x1=1 and x2= -1


Related Solutions

Use Eulers method to find approximate values of the solution of the given initial value problem...
Use Eulers method to find approximate values of the solution of the given initial value problem at T=0.5 with h=0.1. 12. y'=y(3-ty) y(0)=0.5
1)(a) Approximate the value of the double integral, ∫ ∫ R x 2 ydA, where R...
1)(a) Approximate the value of the double integral, ∫ ∫ R x 2 ydA, where R = [−1, 5] × [0, 4], using the midpoint rule with m = 3 and n = 2. (b) Evaluate the double integral in the part (a), evaluating the corresponding iterated integral. 2)Let D be a region in the xy plane, between the graphs of y = 2 cos(x) and y = − sin(x), for 0 ≤ x ≤ π 2 . Sketch D...
consider f(x) = ln(x) a) Approximate f(0.9) and f(1.1) b) Use Taylor remainder to find an...
consider f(x) = ln(x) a) Approximate f(0.9) and f(1.1) b) Use Taylor remainder to find an error formula for Taylor polynomial. Give error bounds for each of the two approximations in (a). Which of the two approximations in part (a) is closer to correct value? c) Compare an actual error in each case with error bound in part (b).
consider f(x) = ln(x) a) Approximate f(0.9) and f(1.1) b) Use Taylor remainder to find an...
consider f(x) = ln(x) a) Approximate f(0.9) and f(1.1) b) Use Taylor remainder to find an error formula for Taylor polynomial. Give error bounds for each of the two approximations in (a). Which of the two approximations in part (a) is closer to correct value? c) Compare an actual error in each case with error bound in part (b).
x*y' '+y'-x*y=0 1> use Frobenious series solution to solve the ODE.
x*y' '+y'-x*y=0 1> use Frobenious series solution to solve the ODE.
In each of problems 1 through 4: (a) Find approximate values of the solution of the...
In each of problems 1 through 4: (a) Find approximate values of the solution of the given initialvalue problem at t=0.1, 0.2, 0.3, and 0.4 using the Euler methodwith h=0.1 (b) Repeat part (a) with h=0.05. Compare the results with thosefound in (a) (c) Repeat part (a) with h=0.025. Compare the results with thosefound in (a) and (b). (d) Find the solution y=φ(t) of the given problem and evaluateφ(t) at t=0.1, 0.2, 0.3, and 0.4. Compare these values with the...
1) For your sample, use R to find the mean of x, the mean of y,...
1) For your sample, use R to find the mean of x, the mean of y, the standard deviation of x, the standard deviation of y, and the correlation between x and y. (You must give R code for credit.) > set.seed(0003653838) > x=rnorm(500) > y=2*x+rnorm(500) > Xbar=mean(x) > Xbar [1] 0.0712552 > Ybar=mean(y) > Ybar [1] 0.2370446 > sdx=sd(x) > sdx [1] 0.9841084 > sdy=sd(y) > sdy [1] 2.277837 > corxy=cor(x,y) > corxy [1] 0.9040743 2) Find the equation...
Let y′=y(4−ty) and y(0)=0.85. Use Euler's method to find approximate values of the solution of the...
Let y′=y(4−ty) and y(0)=0.85. Use Euler's method to find approximate values of the solution of the given initial value problem at t=0.5,1,1.5,2,2.5, and 3 with h=0.05. Carry out all calculations exactly and round the final answers to six decimal places.
Solve the system y'=x x'=-x+ry-y^3 r is a real number. Solve for eigenvalues & stability of...
Solve the system y'=x x'=-x+ry-y^3 r is a real number. Solve for eigenvalues & stability of system. Show bifurcation value.
Find the lagrange polynomials that approximate f(x) = x3 a ) Find the linear interpolation polynomial...
Find the lagrange polynomials that approximate f(x) = x3 a ) Find the linear interpolation polynomial P1(x) using the nodes x0= -1 and x1 = 0 b) Find the quadratic interpolation polynomial P2(x) using the nodes x0= -1 and x1 = 0 and x2 = 1 c) Find the cubic interpolation polynomial P3(x) using the nodes x0= -1 and x1 = 0 and x2 = 1 and x3=2 d) Find the linear interpolation polynomial P1(x) using the nodes x0= 1...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT