Path: news.mathworks.com!not-for-mail From: <HIDDEN> Newsgroups: comp.soft-sys.matlab Subject: how to solve a complex equation with symbolic coefficients? Date: Fri, 21 May 2010 15:35:21 +0000 (UTC) Organization: The MathWorks, Inc. Lines: 11 Message-ID: <ht697p$l01$1@fred.mathworks.com> Reply-To: <HIDDEN> NNTP-Posting-Host: webapp-05-blr.mathworks.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: fred.mathworks.com 1274456121 21505 172.30.248.35 (21 May 2010 15:35:21 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Fri, 21 May 2010 15:35:21 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 2046944 Xref: news.mathworks.com comp.soft-sys.matlab:638108 the equation is like this solve('y*pi/b0=0.5*log((sqrt(a2+v^2)+v)/(sqrt(a2+v^2)-v))+2*gp/b0*atan(2*gp/b0*(v/sqrt(a2+v^2)))','v') 1. actually I have know the value of the coefficients in the equation, but how to transfer these value before the 'solve' command 2. It can't work out in matlab even if I syms y bo a2 gp in advance 3. if I replace the coefficients with values I could get the result of 'v', but unfortunately it is in a for loop, so I can't stop the program and write the value into the equation for each step Thanks!