<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Post, trig equation</title>
    <link>http://www.mapleprimes.com/posts/40167-Trig-Equation</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Thu, 11 Jun 2026 22:11:51 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 22:11:51 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Post, trig equation</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Post, trig equation</title>
      <link>http://www.mapleprimes.com/posts/40167-Trig-Equation</link>
    </image>
    <item>
      <title>trig equation</title>
      <link>http://www.mapleprimes.com/posts/40167-Trig-Equation?ref=Feed:MaplePrimes:trig equation:Comments#comment73888</link>
      <itunes:summary>After plotting, you can enter your range into the Roots command found in the Student[Calculus1] package.

&gt;restart:
&gt;with(Student[Calculus1]):
&gt;Roots(cos(x/2)-1/2,x=0..12);

&lt;maple&gt;[2/3*Pi, 10/3*Pi]&lt;/maple&gt;

&lt;em&gt;Regards,
Georgios Kokovidis
Dräger Medical&lt;/em&gt;</itunes:summary>
      <description>The latest comments added to the Post, trig equation</description>
      <guid>73888</guid>
      <pubDate>Mon, 28 Jan 2008 05:32:00 Z</pubDate>
      <itunes:author>gkokovidis</itunes:author>
      <author>gkokovidis</author>
    </item>
    <item>
      <title>trig equation</title>
      <link>http://www.mapleprimes.com/posts/40167-Trig-Equation?ref=Feed:MaplePrimes:trig equation:Comments#comment73886</link>
      <itunes:summary>Roots does not indicate, as solve does, that there is an 
infinity of solutions accessed by adding 4k Pi. Is there a
Maple command that will give both pieces of information?

Alla</itunes:summary>
      <description>The latest comments added to the Post, trig equation</description>
      <guid>73886</guid>
      <pubDate>Mon, 28 Jan 2008 07:35:23 Z</pubDate>
      <itunes:author>alla</itunes:author>
      <author>alla</author>
    </item>
    <item>
      <title>Trig equation</title>
      <link>http://www.mapleprimes.com/posts/40167-Trig-Equation?ref=Feed:MaplePrimes:trig equation:Comments#comment73885</link>
      <itunes:summary>Note that the binary variable _B1 takes the values 0 and 1, while _Z1 takes arbitrary integer values.  For _B1 = 0:

&lt;pre&gt;
&gt; S := 2/3*Pi-4/3*Pi*_B1+4*Pi*_Z1:
  seq(eval(S,{_B1=0,_Z1=z}),z=-3..3);
&lt;/pre&gt;
&lt;maple&gt;-34/3*Pi&lt;/maple&gt;,&lt;maple&gt; -22/3*Pi&lt;/maple&gt;,&lt;maple&gt; -10/3*Pi&lt;/maple&gt;,&lt;maple&gt; 2/3*Pi&lt;/maple&gt;,&lt;maple&gt; 14/3*Pi&lt;/maple&gt;,&lt;maple&gt; 26/3*Pi&lt;/maple&gt;,&lt;maple&gt; 38/3*Pi&lt;/maple&gt;

For _B1 = 1:

&lt;pre&gt;
&gt; seq(eval(S,{_B1=1,_Z1=z}),z=-3..3);  
&lt;/pre&gt;
&lt;maple&gt;-38/3*Pi&lt;/maple&gt;,&lt;maple&gt; -26/3*Pi&lt;/maple&gt;,&lt;maple&gt; -14/3*Pi&lt;/maple&gt;,&lt;maple&gt; -2/3*Pi&lt;/maple&gt;,&lt;maple&gt; 10/3*Pi&lt;/maple&gt;,&lt;maple&gt; 22/3*Pi&lt;/maple&gt;,&lt;maple&gt; 34/3*Pi&lt;/maple&gt;

So the smallest positive values are 2/3*Pi and 10/3*Pi.
</itunes:summary>
      <description>The latest comments added to the Post, trig equation</description>
      <guid>73885</guid>
      <pubDate>Mon, 28 Jan 2008 07:39:58 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
    <item>
      <title>Output of Solve</title>
      <link>http://www.mapleprimes.com/posts/40167-Trig-Equation?ref=Feed:MaplePrimes:trig equation:Comments#comment73884</link>
      <itunes:summary>Pertaining to the original example, solve by itself does not return 

{x = 2/3*Pi-4/3*Pi*_B2+4*Pi*_Z4}

unless the environment variable _EnvAllSolutions is set to true.

I mention this just in case others try to recreate the result and only see one solution returned.

&gt;_EnvAllSolutions := true:

&lt;em&gt;Regards,
Georgios Kokovidis
Dräger Medical&lt;/em&gt;</itunes:summary>
      <description>The latest comments added to the Post, trig equation</description>
      <guid>73884</guid>
      <pubDate>Mon, 28 Jan 2008 07:47:43 Z</pubDate>
      <itunes:author>gkokovidis</itunes:author>
      <author>gkokovidis</author>
    </item>
    <item>
      <title>Attending this forum</title>
      <link>http://www.mapleprimes.com/posts/40167-Trig-Equation?ref=Feed:MaplePrimes:trig equation:Comments#comment73877</link>
      <itunes:summary>Once again it has proven rewarding to read these threads:
&lt;ul&gt;
&lt;li&gt;I did not know that &lt;code&gt;_B1&lt;/code&gt;, &lt;code&gt;_B2&lt;/code&gt;, etc., meant binary variables taking on values &lt;code&gt;0&lt;/code&gt; and &lt;code&gt;1&lt;/code&gt; only, as &lt;a href="http://www.mapleprimes.com/blog/alla/trig-equation#comment-12732"&gt;Robert writes&lt;/a&gt;.
&lt;/li&gt;
&lt;li&gt;I did not know that &lt;code&gt;_EnvAllSolutions&lt;/code&gt; must be assigned &lt;code&gt;true&lt;/code&gt; in order that &lt;code&gt;solve&lt;/code&gt; returns all solutions to some trigonometric equation, as &lt;a href="http://www.mapleprimes.com/blog/alla/trig-equation#comment-12733"&gt;Georgios writes&lt;/a&gt;.
&lt;/li&gt;
&lt;/ul&gt;

Thanks, guys!</itunes:summary>
      <description>The latest comments added to the Post, trig equation</description>
      <guid>73877</guid>
      <pubDate>Mon, 28 Jan 2008 13:17:09 Z</pubDate>
      <itunes:author>John Fredsted</itunes:author>
      <author>John Fredsted</author>
    </item>
    <item>
      <title>Rather than _EnvAllSolutions</title>
      <link>http://www.mapleprimes.com/posts/40167-Trig-Equation?ref=Feed:MaplePrimes:trig equation:Comments#comment84339</link>
      <itunes:summary>Instead of using _EnvAllSolutions, I prefer to pass the AllSolutions option to solve:
&lt;code&gt;solve(cos(x/2) = 1/2, x, AllSolutions);&lt;/code&gt;
it does the same thing, but it is more localized.

--
John May</itunes:summary>
      <description>The latest comments added to the Post, trig equation</description>
      <guid>84339</guid>
      <pubDate>Mon, 28 Jan 2008 20:12:54 Z</pubDate>
      <itunes:author>jpmay</itunes:author>
      <author>jpmay</author>
    </item>
  </channel>
</rss>