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.

Need help in solving transcendental equation.

Status
Not open for further replies.

bandikotireddy

Newbie level 1
Joined
Jul 9, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
6
My equation is like this,
tan(x)*tan((y/1-y)*x)=5. I need to solve for x as y is varying from 0 to 1.
please help me.
 

You can use the Netwon-Rapshon method that is very easy to implement.
I coded it with Scilab:

Code:
function z=H(x,y), z=tan(x)*tan(x*y/(1-y))-5, endfunction	// Function  to be solved

eps=1e-4;			// Wanted accuracy
i=1;

for yval=0.01:0.01:0.99,	// y variable SPAN

	x0=0.1;  		// first guess

	while abs(H(x0,yval))>eps do	// Iterate until the solution is inside the accuracy

		x0 = x0 - H(x0,yval)/derivative(list(H,yval),x0);
	end

	solution(i,1) = x0;	// Solution x
	solution(i,2) = yval;	// relative to this value of y
	
	i = i+1;	// increases index
end
 
try to use Wolfram Mathematica
for example look - for y(x)=sin(x):
http://www.wolframalpha.com/input/?i=solve%28+tan%28x%29+tan%28%28sin%28x%29%2F%281-sin%28x%29%29%29+x%29-5+%3D+0%2C+x%2C{0%2C1}%29
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top