Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

c or MATLAB programing for nolinear systems

Status
Not open for further replies.

azerturk

Newbie level 6
Newbie level 6
Joined
Nov 11, 2006
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Azerbaijan-Tebriz
Activity points
1,359
I need programs(codes) to solve this system equations with methods bisection, secant ,
newton raphson and regula falsi all with (10D).
y=f(t)=9600(1-{e }^{-t/15 })-480t=0

z=g(t)=640({e }^{-t/15 })-480
or plz give me some hints by tuesday
 

do you need the plots only, numerical solution, or interpolation?
 

I can help you with bisection and Newton raphson.

For bisection, you need to specify two values A and B manually such that,
f(A) < 0 and f(B) > 0;
counter=0;
step 1: c = (A+B) / 2 % arithmatic mean
step 2: test C;
is f(C) > 0?
B = C; %the solution lies between A and C
is f(C) < 0?
A = C; %the solution lies between A and C
is f(C) == 0?
C is the solution, exit program;
step 3: counter = counter+1
step 4: if counter > L goto step 1
print the value of C;



newton raphson
to solve y = f(x)

determine d/dx of f(x)
say d/dx((f(x)) = f'(x)

then x(n+1) = x(n) - f(x(n)) / f'(x(n))

assume any arbitrary value for x(0), and then iterate for 7-8 times, you'll get an accurate enough result in x(7)
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top