For Programmers: Free Programming Magazines  


Home > Archive > Matlab > March 2007 > Re: solving an equation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: solving an equation
Nasser Abbasi

2007-03-31, 8:10 am


"farshad" <farshad.kooshesh@gmail.com> wrote in message
news:ef52ef1.1@webcrossing.raydaftYaTP...

> My problem in renaming my mfile solved but I still cant solve my
> equation.
>
> my equation is:
>
> (a*b*(pi/x)^2-36)/(6*(a+b))-(pi/x)/tan(pi/x)=0
>
> where a,b are reading from input
> a=input ('a')
> b=input ('b')
>
> and 0<x<inf
>
> please help me how I can find x.
> thank you.


You can't get a closed form solution for this, it invoves inverse trig
functions.

(you did not give what values to use for a,b, I am trying these)
syms x positive
a=1
b=2
solve( '(a*b*(pi/x)^2-36)/(6*(a+b))-(pi/x)/tan(pi/x)=0','x')

??? Error using ==> solve
Unable to find closed form solution.

maple gives an expression in terms of RootOf, the best you can get
[color=darkred]
[color=darkred]

ans =

pi/RootOf(tan(_Z)*_Z^2-18*tan(_Z)-9*_Z)


Nasser


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com