<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252532</link>
    <title>MATLAB Central Newsreader - Problem while solving sinusodial equations</title>
    <description>Feed for thread: Problem while solving sinusodial equations</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 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.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Sat, 30 May 2009 12:16:01 -0400</pubDate>
      <title>Problem while solving sinusodial equations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252532#653557</link>
      <author>Michael </author>
      <description>Greetings!!&lt;br&gt;
&lt;br&gt;
I am a beginner and have problems solving the following equations:&lt;br&gt;
&lt;br&gt;
g1=-sin(w*z+pi/2) + sin(w*z+pi/2-(4*pi)/3) + b*sin(5*w*z-pi/3) -(-sin(w*z+pi/2) - x*sin(5*w*z-y) + sin(w*z+pi/2-(4*pi)/3) + x*sin(5*w*z-u));&lt;br&gt;
g2=-sin(w*z+pi/2-(4*pi)/3) + sin(w*z+pi/2-(2*pi)/3) + b*sin(5*w*z-pi) -(-sin(w*z+pi/2-(4*pi)/3) - x*sin(5*w*z-u) + sin(w*z+pi/2-(2*pi)/3) + x*sin(5*w*z-t));&lt;br&gt;
g3=-sin(w*z+pi/2-(2*pi)/3) + sin(w*z+pi/2) + b*sin(5*w*z-(5*pi)/3) -(-sin(w*z+pi/2-(2*pi)/3) - x*sin(5*w*z-t) + sin(w*z+pi/2) + x*sin(5*w*z-y));&lt;br&gt;
g4=(-sin(w*z+pi/2) - x*sin(5*w*z-y) + sin(w*z+pi/2-(4*pi)/3) + x*sin(5*w*z-u)) + (-sin(w*z+pi/2-(4*pi)/3) - x*sin(5*w*z-u) + sin(w*z+pi/2-(2*pi)/3) + x*sin(5*w*z-t)) + (-sin(w*z+pi/2-(2*pi)/3) - x*sin(5*w*z-t) + sin(w*z+pi/2) + x*sin(5*w*z-y));&lt;br&gt;
&lt;br&gt;
With the variables x,y,u,t and with&lt;br&gt;
z=[0:0.001:20E-3];&lt;br&gt;
f=50;&lt;br&gt;
w=2*pi*f;&lt;br&gt;
b=0.067;&lt;br&gt;
&lt;br&gt;
Perfect would be if all become zero but it tells me (solve-function) that this it not possible.&lt;br&gt;
&lt;br&gt;
Is there any function that can help me to calcultate the variables that all equations become close to zero. fsolve-function refused to work because of wrong input data type??&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks for your help!!</description>
    </item>
    <item>
      <pubDate>Sun, 31 May 2009 20:57:01 -0400</pubDate>
      <title>Re: Problem while solving sinusodial equations</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/252532#653690</link>
      <author>Miroslav Balda</author>
      <description>&quot;Michael &quot; &amp;lt;thebadphantom@gmx.de&amp;gt; wrote in message &lt;br&gt;
&lt;br&gt;
SNIP&lt;br&gt;
&lt;br&gt;
&amp;gt; Is there any function that can help me to calcultate the variables that all equations become close to zero. fsolve-function refused to work because of wrong input data type??&lt;br&gt;
&lt;br&gt;
Hi Michael,&lt;br&gt;
&lt;br&gt;
It is always difficult to solve set of nonlinear equations containing harmonic functions with unknowns in arguments. It is necessary that you have to have rather good estimate of the solution to get a chance of convergence of iterations. One way, how to overcome this difficulty is to solve many trial runs in which you choose such unknowns as random numbers from a known interval, and finaly to select the solution with minimum sum of squares of equation residuals.&lt;br&gt;
&lt;br&gt;
I would use my function LMFnlsq from FEX Id. 17534, which is rather stable, however, it is impossible to guarantee the successful solution.&lt;br&gt;
&lt;br&gt;
Good luck&lt;br&gt;
&lt;br&gt;
Mira  </description>
    </item>
  </channel>
</rss>

