<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Post, solve a problem</title>
    <link>http://www.mapleprimes.com/posts/42145-Solve-A-Problem</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Fri, 12 Jun 2026 04:25:51 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 04:25:51 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Post, solve a problem</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Post, solve a problem</title>
      <link>http://www.mapleprimes.com/posts/42145-Solve-A-Problem</link>
    </image>
    <item>
      <title>Trying fsolve?</title>
      <link>http://www.mapleprimes.com/posts/42145-Solve-A-Problem?ref=Feed:MaplePrimes:solve a problem:Comments#comment78767</link>
      <itunes:summary>First of all I think you should change &lt;em&gt;omega&lt;/em&gt; variable to sth. else, e.g. &lt;em&gt;om&lt;/em&gt;, since Maple translates &lt;em&gt;omega&lt;/em&gt; as a built-in function [except, of course, you need to use &lt;em&gt;omega&lt;/em&gt;]. You may change the code writing:

restart: 
eq[1]:=add((-1)^(i+1)*cos(om*t[i]),i=1..5):
eq[2]:=add((-1)^(i+1)*sin(om*t[i]),i=1..5):
eq[3]:=add((-1)^(i+1)*cos(r*om*t[i]),i=1..5):
eq[4]:=add((-1)^(i+1)*sin(r*om*t[i]),i=1..5):
eq[5]:=t[1]:
eq[6]:=t[4]-2*t[3]+t[2]: 
eq[7]:=t[5]-2*t[3]:
s1:=fsolve({seq(eq[i],i=1..7)},{seq(t[i],i=1..5),r,om});
Solutions:=subs(s1,[seq(t[i],i=1..5), r, om]):
t:=[seq(op(i,Solutions),i=1..5)]; r:=op(6,Solutions); om:=op(7,Solutions);
&lt;blockquote&gt; You can check results by writing:
seq(eq[i],i=1..7);

pantole</itunes:summary>
      <description>The latest comments added to the Post, solve a problem</description>
      <guid>78767</guid>
      <pubDate>Wed, 13 Dec 2006 11:59:29 Z</pubDate>
      <itunes:author>pantole</itunes:author>
      <author>pantole</author>
    </item>
    <item>
      <title>omega</title>
      <link>http://www.mapleprimes.com/posts/42145-Solve-A-Problem?ref=Feed:MaplePrimes:solve a problem:Comments#comment86092</link>
      <itunes:summary>Maple 10.06 should not confuse omega with the built-in function Wrightomega, unless it has been given as an alias for the latter. AFAIK there were no omega functions in previous versions of Maple.

Hope this helps,

J. Tarr</itunes:summary>
      <description>The latest comments added to the Post, solve a problem</description>
      <guid>86092</guid>
      <pubDate>Wed, 13 Dec 2006 15:27:17 Z</pubDate>
      <itunes:author>Mariner</itunes:author>
      <author>Mariner</author>
    </item>
    <item>
      <title>symbolic solution?</title>
      <link>http://www.mapleprimes.com/posts/42145-Solve-A-Problem?ref=Feed:MaplePrimes:solve a problem:Comments#comment78766</link>
      <itunes:summary>Thank you for your numeric way.
But, I try to get a solution symbolically.

t[1],t[2],...t[5] are time variables.
oemga, r are constants.

Could you give me help?

Thanks,
</itunes:summary>
      <description>The latest comments added to the Post, solve a problem</description>
      <guid>78766</guid>
      <pubDate>Wed, 13 Dec 2006 17:25:11 Z</pubDate>
      <itunes:author>sungyg</itunes:author>
      <author>sungyg</author>
    </item>
    <item>
      <title>omega</title>
      <link>http://www.mapleprimes.com/posts/42145-Solve-A-Problem?ref=Feed:MaplePrimes:solve a problem:Comments#comment78765</link>
      <itunes:summary>J. Tarr is right when he points that it should work with variable &lt;em&gt;omega&lt;/em&gt; without problem. I checked it out, but another paradox emerged: although, fsolve gave results with both omega and alternative variable, when used with omega the calculations delayed a little. Again with time function:

&lt;
restart: st:=time(): Digits:=10:
eq[1]:=add((-1)^(i+1)*cos(omega*t[i]),i=1..5):
eq[2]:=add((-1)^(i+1)*sin(omega*t[i]),i=1..5):
eq[3]:=add((-1)^(i+1)*cos(r*omega*t[i]),i=1..5):
eq[4]:=add((-1)^(i+1)*sin(r*omega*t[i]),i=1..5):
eq[5]:=t[1]:
eq[6]:=t[4]-2*t[3]+t[2]: 
eq[7]:=t[5]-2*t[3]:
s1:=fsolve({seq(eq[i],i=1..7)},{seq(t[i],i=1..5),r,omega}):
Solutions:=subs(s1,[seq(t[i],i=1..5), r, omega]):
t:=[seq(op(i,Solutions),i=1..5)]; r:=op(6,Solutions); omega:=op(7,Solutions);
seq(eq[i],i=1..7); time()-st;
&gt; 

If &lt;em&gt;omega&lt;/em&gt; is substituted for &lt;em&gt;om&lt;/em&gt; for instance, calculations do not delay (maybe this happens at random). Still, since Maple output generates the greek omega (something like a &lt;em&gt;w&lt;/em&gt;) for &lt;em&gt;omega &lt;/em&gt;variable, then I guess that one should be sceptical for using this variable. 

But, maybe he shouldn't.

pantole</itunes:summary>
      <description>The latest comments added to the Post, solve a problem</description>
      <guid>78765</guid>
      <pubDate>Wed, 13 Dec 2006 17:52:32 Z</pubDate>
      <itunes:author>pantole</itunes:author>
      <author>pantole</author>
    </item>
    <item>
      <title>arbitrary constants</title>
      <link>http://www.mapleprimes.com/posts/42145-Solve-A-Problem?ref=Feed:MaplePrimes:solve a problem:Comments#comment86087</link>
      <itunes:summary>Thanks anyway,

I am trying to solve it for time variables.
Could you make some code for arbitrary constants
of omega and r for time t[2] and t[3] solutions?
Those should be in positive format due to time variables.
I think that you have to use "solve" command.


Thanks
</itunes:summary>
      <description>The latest comments added to the Post, solve a problem</description>
      <guid>86087</guid>
      <pubDate>Fri, 15 Dec 2006 22:08:27 Z</pubDate>
      <itunes:author>sungyg</itunes:author>
      <author>sungyg</author>
    </item>
    <item>
      <title>fsolve</title>
      <link>http://www.mapleprimes.com/posts/42145-Solve-A-Problem?ref=Feed:MaplePrimes:solve a problem:Comments#comment91064</link>
      <itunes:summary>If you know that the values of the variables fall within a certain range, you can insert this as option in fsolve - please see ?fsolve,details. Something like this:

restart: Digits:=15:
eq[1]:=add((-1)^(i+1)*cos(omega*t[i]),i=1..5)=0:
eq[2]:=add((-1)^(i+1)*sin(omega*t[i]),i=1..5)=0:
eq[3]:=add((-1)^(i+1)*cos(r*omega*t[i]),i=1..5)=0:
eq[4]:=add((-1)^(i+1)*sin(r*omega*t[i]),i=1..5)=0:
eq[5]:=t[1]=0:
eq[6]:=t[4]-2*t[3]+t[2]=0:
eq[7]:=t[5]-2*t[3]=0:
s1:=fsolve({seq(eq[i],i=1..7)},{seq(t[i],i=1..5),r,omega},0..4):
Solutions:= [seq(t[i]=eval(t[i],s1),i=1..5),r=eval(r,s1),omega=eval(omega,s1)];
check_Solutions := seq(eval(eq[i],s1),i=1..7);

Hope this helps,

J. Tarr</itunes:summary>
      <description>The latest comments added to the Post, solve a problem</description>
      <guid>91064</guid>
      <pubDate>Sat, 16 Dec 2006 02:53:30 Z</pubDate>
      <itunes:author>Mariner</itunes:author>
      <author>Mariner</author>
    </item>
  </channel>
</rss>