<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/282789</link>
    <title>MATLAB Central Newsreader - how to solve a complex equation with symbolic coefficients?</title>
    <description>Feed for thread: how to solve a complex equation with symbolic coefficients?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2013 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.es/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Fri, 21 May 2010 15:35:21 +0000</pubDate>
      <title>how to solve a complex equation with symbolic coefficients?</title>
      <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/282789#747648</link>
      <author>Giuseppe </author>
      <description>the equation is like this&lt;br&gt;
&lt;br&gt;
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')&lt;br&gt;
&lt;br&gt;
1. actually I have know the value of the coefficients in the equation, but how to transfer these value before the 'solve' command&lt;br&gt;
&lt;br&gt;
2. It can't work out in matlab even if I syms y bo a2 gp in advance&lt;br&gt;
&lt;br&gt;
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&lt;br&gt;
&lt;br&gt;
Thanks!</description>
    </item>
    <item>
      <pubDate>Fri, 21 May 2010 17:48:05 +0000</pubDate>
      <title>Re: how to solve a complex equation with symbolic coefficients?</title>
      <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/282789#747693</link>
      <author>Roger Stafford</author>
      <description>"Giuseppe " &amp;lt;motognere@gmail.com&amp;gt; wrote in message &amp;lt;ht697p$l01$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; the equation is like this&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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')&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 1. actually I have know the value of the coefficients in the equation, but how to transfer these value before the 'solve' command&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 2. It can't work out in matlab even if I syms y bo a2 gp in advance&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks!&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;Have you tried the 'subs' function?&lt;br&gt;
&lt;br&gt;
Roger Stafford</description>
    </item>
    <item>
      <pubDate>Fri, 21 May 2010 17:56:22 +0000</pubDate>
      <title>Re: how to solve a complex equation with symbolic coefficients?</title>
      <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/282789#747694</link>
      <author>Walter Roberson</author>
      <description>Giuseppe wrote:&lt;br&gt;
&amp;gt; the equation is like this&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 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') &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 1. actually I have know the value of the coefficients in the equation, &lt;br&gt;
&amp;gt; but how to transfer these value before the 'solve' command&lt;br&gt;
&lt;br&gt;
subs()</description>
    </item>
    <item>
      <pubDate>Fri, 21 May 2010 19:05:38 +0000</pubDate>
      <title>Re: how to solve a complex equation with symbolic coefficients?</title>
      <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/282789#747723</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
"Giuseppe " &amp;lt;motognere@gmail.com&amp;gt; wrote in message &lt;br&gt;
news:ht697p$l01$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; the equation is like this&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 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')&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 1. actually I have know the value of the coefficients in the equation, but &lt;br&gt;
&amp;gt; how to transfer these value before the 'solve' command&lt;br&gt;
&lt;br&gt;
Then don't pass your equation in as a string.  Pass it in as a symbolic &lt;br&gt;
expression:&lt;br&gt;
&lt;br&gt;
% define appropriate symbolic and/or numeric variables above&lt;br&gt;
S = &lt;br&gt;
solve(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)))-y*pi/b0)&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com&lt;br&gt;
comp.soft-sys.matlab (CSSM) FAQ: &lt;a href="http://matlabwiki.mathworks.com/MATLAB_FAQ"&gt;http://matlabwiki.mathworks.com/MATLAB_FAQ&lt;/a&gt;&lt;br&gt;
To contact Technical Support use the Contact Us link on &lt;br&gt;
&lt;a href="http://www.mathworks.com"&gt;http://www.mathworks.com&lt;/a&gt; </description>
    </item>
  </channel>
</rss>
