<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.co.kr/matlabcentral/newsreader/view_thread/289116</link>
    <title>MATLAB Central Newsreader - How to solve</title>
    <description>Feed for thread: How to solve</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.co.kr/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 12 Aug 2010 06:01:33 +0000</pubDate>
      <title>How to solve</title>
      <link>http://www.mathworks.co.kr/matlabcentral/newsreader/view_thread/289116#770709</link>
      <author>parul sotobon</author>
      <description>Hi all !&lt;br&gt;
I want to solve following nonlinear equation.&lt;br&gt;
My variables are c, q and f.&lt;br&gt;
I have got values of c but I can not solve for q and f.&lt;br&gt;
Can any body suggest me please?&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
a=1000;&lt;br&gt;
b=2.5;&lt;br&gt;
&amp;nbsp;s=2;&lt;br&gt;
&amp;nbsp;t=0.5;&lt;br&gt;
&amp;nbsp;hb= 0.5 ;&lt;br&gt;
Ab = 5 ;&lt;br&gt;
&amp;nbsp;Av = 10 ;&lt;br&gt;
&amp;nbsp;y=0.5;&lt;br&gt;
&amp;nbsp;w=0.001;&lt;br&gt;
&amp;nbsp;h=0.05;&lt;br&gt;
&amp;nbsp;r=10;&lt;br&gt;
&amp;nbsp;g=5;&lt;br&gt;
&amp;nbsp;tv=3;&lt;br&gt;
&amp;nbsp;l=0.5;&lt;br&gt;
&amp;nbsp;N=3&lt;br&gt;
&amp;nbsp;c=(a*b*(Ab+Av/N)+2*a*b*s+a*b*t)/(a*b-a);&lt;br&gt;
&amp;nbsp;x1=a*c^(-b)*(Ab+Av/N);&lt;br&gt;
&amp;nbsp;x2=y*w+y*w/N+y*h/N;&lt;br&gt;
&amp;nbsp;x3=hb/2+l*w+tv*w+l*h;&lt;br&gt;
x2*q^3-x3*q^2-x1=0;&lt;br&gt;
f=c*a-q*h ;&lt;br&gt;
c, q, t ???&lt;br&gt;
&lt;br&gt;
Thanks in advanced&lt;br&gt;
Parul</description>
    </item>
    <item>
      <pubDate>Thu, 12 Aug 2010 06:16:22 +0000</pubDate>
      <title>Re: How to solve</title>
      <link>http://www.mathworks.co.kr/matlabcentral/newsreader/view_thread/289116#770711</link>
      <author>Roger Stafford</author>
      <description>The 'roots' function is your friend.&lt;br&gt;
&lt;br&gt;
Roger Stafford</description>
    </item>
    <item>
      <pubDate>Thu, 12 Aug 2010 20:58:13 +0000</pubDate>
      <title>Re: How to solve</title>
      <link>http://www.mathworks.co.kr/matlabcentral/newsreader/view_thread/289116#771003</link>
      <author>Walter Roberson</author>
      <description>parul sotobon wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt; I want to solve following nonlinear equation.&lt;br&gt;
&amp;gt; My variables are c, q and f.&lt;br&gt;
&amp;gt; I have got values of c but I can not solve for q and f.&lt;br&gt;
&amp;gt; Can any body suggest me please?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; a=1000;&lt;br&gt;
&amp;gt; b=2.5;&lt;br&gt;
&amp;gt;  s=2;&lt;br&gt;
&amp;gt;  t=0.5;&lt;br&gt;
&amp;gt;  hb= 0.5 ;&lt;br&gt;
&amp;gt; Ab = 5 ;&lt;br&gt;
&amp;gt;  Av = 10 ;&lt;br&gt;
&amp;gt;  y=0.5;&lt;br&gt;
&amp;gt;  w=0.001;&lt;br&gt;
&amp;gt;  h=0.05;&lt;br&gt;
&amp;gt;  r=10;&lt;br&gt;
&amp;gt;  g=5;&lt;br&gt;
&amp;gt;  tv=3;&lt;br&gt;
&amp;gt;  l=0.5;&lt;br&gt;
&amp;gt;  N=3&lt;br&gt;
&amp;gt;  c=(a*b*(Ab+Av/N)+2*a*b*s+a*b*t)/(a*b-a);&lt;br&gt;
&amp;gt;  x1=a*c^(-b)*(Ab+Av/N);&lt;br&gt;
&amp;gt;  x2=y*w+y*w/N+y*h/N;&lt;br&gt;
&amp;gt;  x3=hb/2+l*w+tv*w+l*h;&lt;br&gt;
&amp;gt; x2*q^3-x3*q^2-x1=0;&lt;br&gt;
&amp;gt; f=c*a-q*h ;&lt;br&gt;
&amp;gt; c, q, t ???&lt;br&gt;
&lt;br&gt;
Above you want to solve for c, q, and f, but here you ask about c, q, and t.&lt;br&gt;
&lt;br&gt;
c = 385/18&lt;br&gt;
t = 1/2&lt;br&gt;
&lt;br&gt;
Now, let W = RootOf(18*_Z^3-42889*_Z^2-129600000*385^(1/2)*2^(1/2)&lt;br&gt;
That is, W are the the three values _Z that satisfy the cubic equation&lt;br&gt;
18 * _Z^3 - 42889 * _Z^2 - 129600000 * sqrt(385) * sqrt(2) = 0&lt;br&gt;
then,&lt;br&gt;
&lt;br&gt;
f = 192500/9 - 1/1540 * W&lt;br&gt;
q = 1 / 77 * W&lt;br&gt;
&lt;br&gt;
There are analytic solutions for the three routes but they are messy, Their &lt;br&gt;
numeric values are approximately,&lt;br&gt;
&lt;br&gt;
2416.924245, -17.1010110 + 287.0039229 i, -17.1010110 - 287.0039229 i&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Note that in deriving these solutions, I assumed that each number given as a &lt;br&gt;
decimal (e.g., 0.001) was intended as a compact way to write an exact rational &lt;br&gt;
number (e.g., 1/1000), rather than being intended as indicated an &lt;br&gt;
approximation (e.g., 95/100000 inclusive to 105/100000 exclusive). Interval &lt;br&gt;
arithmetic is much more tiresome.</description>
    </item>
  </channel>
</rss>
