Suppose a dog is chasing a rabbit along the y-axis, and the coordinate of the rabbit's position at time t is given by (1/3) t^2 +4t. The dog's speed is equal to one half the distance between the two animals and the dog's coordinate at t=0 is y=-5.
a. Determine a differential equation for the position of the dog
b. Justify whether the dog will ever catch the rabbit?
In: Advanced Math
how can I change the Gauss-Seidel method to SOR method code in Matlab?
The question has shows that In implementing SOR method
in MATLAB, one should not calculate Tw and cw by formulas Tw = (D
-wL)^(-1)[(1-w)D+wU)] and Cw = w(D-wL)^(-1)b , where w stands for
omega and using MATLAB's built-in inv function, since this function
requires O(n^3) flops and therefore the
whole matter loses its point.
I have tried for many times but I can't get the correct answers. Please help Thanks :)
Execute code:
function x = GaussSeidel(A,b,x0,tol,kmax,output)
% This function returns an approximate solution of a
% linear system A*x=b, obtained by the Gauss-Seidel method.
%
% x0 is an initial approximation,
% tol is tolerance,
% kmax is the maximum number of iterations,
% output is a parameter which regulates displays:
% 0 - no display,
% 1 - some display,
% 2 - detailed display.
%
% Input: A, n by n matrix,
% b, n by 1 column,
% x0, initial approximation,
% tol, tolerance,
% kmax, maximum number of iterations,
% output, a parameter which regulates displays.
%
% Output: x, a solution.
[m,n]=size(A);
if m~=n,
error('A is not square');
end
m=length(b);
if m~=n,
error('Dimensions of A and B do not agree');
end
% Write A as D-L-U
[D,L,U] = DLU_decomposition(A);
% Calculate the matrix T and the vector c
T = L+U;
c=b;
for i=1:n,
T(i,:) = T(i,:)/D(i,i); % T = D^(-1)*(L+U)
c(i) = b(i)/D(i,i); % c = D^(-1)*b
end
% Calculate x
x=x0; % initial approximation
if output >= 2
disp(' k TOL x1 x2');
end
for k=1:kmax,
xprev=x;
for i=1:n
x(i)=c(i);
for j=1:n
if j~=i
x(i)=x(i)+T(i,j)*x(j);
end
end
end
TOL=norm(x-xprev,inf);
if output >= 2
out=[k, TOL, x(1), x(2)];
disp(out);
end
if TOL<tol,
if output >= 1
disp('The Gauss-Seidel method has converged.');
end
break
end
end
if output >= 1
if TOL>=tol
disp('The Gauss-Seidel method did not converge.');
end
s=sprintf('The norm of residual vector A*x-b is
%e.',norm(A*x-b));
disp(s);
end
end
In: Advanced Math
In: Advanced Math
(x^3-3x^2-x+3)/(x^2+x-x) find critical numbers ,relative min/max and graph the function
In: Advanced Math
A farmer has 150 acres of land suitable for cultivating Crops A and B. The cost of cultivating Crop A is $40/acre, and the cost of cultivating Crop B is $60/acre. The farmer has a maximum of $7400 available for land cultivation. Each acre of Crop A requires 20 labor-hours, and each acre of Crop B requires 25 labor-hours. The farmer has a maximum of 3300 labor-hours available. He has also decided that he will cultivate at least 80 acres of Crop A. If he expects to make a profit of $180/acre on Crop A and $200/acre on Crop B, how many acres of each crop should he plant to maximize his profit?
Crop A | acres |
Crop B | acres |
What is the maximum profit?
$
In: Advanced Math
Based on Fibonacci's sequence, prove that the equation x^3 + 2x^2 + 10x = 20 can have no solution in the form a + rad(b), where a and b are positive rationals.
In: Advanced Math
Consider the relation T on the set of all undergraduate TAs (UTA) for the CSE department where s1 T s2 if and only if s1 and s2 are UTAs for the same course.
(a) Assuming that no one is a UTA for multiple courses, prove that T is an equivalence relation.
(b) Assuming that no one is a UTA for multiple courses, what do the equivalence classes for T represent?
(c) Explain why the assumption that no one is a UTA for multiple courses is necessary for T to be an equivalence relation.
In: Advanced Math
1. (a) Explain what is meant by the terms countable set and uncountable set. Give a concrete example of each.
b) Show that if A and B are countably infinite then the set A x B is also countably infinite.
c) Give an expression for the cardinality of set A U B when A and B are both finite sets.
d) What can you say about the cardinality of the set A U B when A and B are infinite sets.
In: Advanced Math
Determine whether the polynomial f(x) is irreducible over the indicated field. (a) f(x) = 4x^ 3 + 10x^2 + 16x − 11 over Q (b) f(x) = 7x^ 4 − 9x^ 2 + 6 over Q (c) f(x) = x^3 − x + 1 over Q (d) f(x) = x ^4 + 2x ^2 + 2 over Q (e) f(x) = x^ 4 + 2x^ 2 + 2 over C (f) f(x) = x ^4 + 2x^ 2 + 2 over R (g) f(x) = x ^2 + 2x − 3 over Z-5 (h) f(x) = x ^3 − 2 over Z-7
In: Advanced Math
Polynomial and rational functions can be used to model a wide variety of phenomena of science, technology, and everyday life.
Choose one of these sectors and give an example of a polynomial or rational function modeling a situation in that sector. [Hint: see the examples and exercises in the book.]
Go to www.desmos.com/calculator, write your equation, or function, and develop your explanation using the properties of graphs.
Your Discussion should be a minimum of 250 words in length and not more than 750 words.
Dear expert, I will submit this assignment after an hour, please don't copy from internet and add APA text citation if needed.
In: Advanced Math
Let F be a field and let φ : F → F be a ring isomorphism. Define Fix φ to be Fix φ = {a ∈ F | φ(a) = a}. That is, Fix φ is the set of all elements of F that are fixed under φ. Prove that Fix φ is a field. (b) Define φ : C → C by φ(a + bi) = a − bi. Take for granted that φ is a ring isomorphism (we proved this in class at some point). Find Fix φ.
In: Advanced Math
Use the method of reduction of order to find a second solution y2 of the given differential equation such that {y1, y2} is a fundamental set of solutions on the given interval.
t2y′′ +2ty′ −2y=0, t > 0, y1(t)=t
(a) Verify that the two solutions that you have obtained are linearly independent.
(b) Let y(1) = y0, y′(1) = v0. Solve the initial value problem. What is the longest interval on which the initial value problem is certain to have a unique twice differentiable solution?
(c) Now suppose that y(0) = y0, y′(0) = v0. Is there a solution in this case (how does it depend on y0 and v0? If so, how many? Explain.
In: Advanced Math
Let R and S be commutative rings with unity. (a) Let I be an ideal of R and let J be an ideal of S. Prove that I × J = {(a, b) | a ∈ I, b ∈ J} is an ideal of R × S. (b) (Harder!) Let L be any ideal of R × S. Prove that there exists an ideal I of R and an ideal J of S such that L = I × J.
In: Advanced Math
Fill in the missing algebraic steps in the concrete renormalization calculation for period doubling.Let f(x) = -(1 + mu)x+x^2. Expand p+(n)subn+1 =
f^2(p+(n)subnetting) in power of small deviations (n) subn using the fact that p is a fixed point of f^2
In: Advanced Math
Q1. Define/outline the following:
a. the difference between a ‘one-tailed test’ and a ‘two-tailed test’.
b. the importance of sample size in the context of OLS regression.
*c. four different types of data structures and discuss their potential usefulness and application in finance.
d. the OLS assumptions
e. Correlation is not causation. Briefly discuss.
(c. is the part I'm confused most about)
In: Advanced Math