Sign In
Not register? Register Now!
Essay Available:
You are here: HomeMath ProblemTechnology
Pages:
2 pages/≈550 words
Sources:
No Sources
Level:
Other
Subject:
Technology
Type:
Math Problem
Language:
English (U.K.)
Document:
MS Word
Date:
Total cost:
$ 10.8
Topic:

Numerical Analysis: Code For Solving Newton Raphson Problem (Math Problem Sample)

Instructions:

I is a numerical analysis assignment. It is a code for solving a newton raphson problem

source..
Content:

Name:
Professor:
Course:
Institution:
Date:
CODE: MATLAB
J = JF;
x = zeros(n,10);
loopit = 1; maxloopit = 5;
ErrorMax = 0.5E-5;
function x = newtonraphson(NF,JF,n)
while loopit < maxloopit
y = J(x)\(-NF(x)); x = x+y;
if norm(y,2) < errormax break; end
disp(['x = ' num2str(x')]; end
function ft = NF(x);
x1 = x(1); x2 = x(2); x3 = x(3);
ft = zeros(3,1);
ft(1) = x0^2+x0^2x2+x2^2-3x^2;
ft(2) = x^2+x1x3+x3^2-3x2;^2;
ft(3) = x2^2+x2x4+x4^2-3x3^2; end
function A = JF(x);
x1 = x(1); x2 = x(2); x3 = x(3);
Det = zeros(3,3);
Det(1,1) = -6x1;
Det(1,2) = x0+2x2;
Det(1,3) = 0;
Det(2,1) = 2x+x3;
Det(2,2...
Get the Whole Paper!
Not exactly what you need?
Do you need a custom essay? Order right now:

Other Topics:

    Need a Custom Essay Written?
    First time 15% Discount!