<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Blog Entry, Converting Half-Angle Trig Formulas to Radicals</title>
    <link>http://www.mapleprimes.com/maplesoftblog/101756-Converting-HalfAngle-Trig-Formulas-To-Radicals</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 16:24:13 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 16:24:13 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Blog Entry, Converting Half-Angle Trig Formulas to Radicals</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Blog Entry, Converting Half-Angle Trig Formulas to Radicals</title>
      <link>http://www.mapleprimes.com/maplesoftblog/101756-Converting-HalfAngle-Trig-Formulas-To-Radicals</link>
    </image>
    <item>
      <title>simplify,size</title>
      <link>http://www.mapleprimes.com/maplesoftblog/101756-Converting-HalfAngle-Trig-Formulas-To-Radicals?ref=Feed:MaplePrimes:Converting Half-Angle Trig Formulas to Radicals:Comments#comment101758</link>
      <itunes:summary>&lt;p&gt;The &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=simplify/size"&gt;simplify(...,size)&lt;/a&gt; command is sometimes useful. But not always... it might not suffice for handling the 3rd column of table 2.&lt;/p&gt;
&lt;pre&gt;&amp;gt; x:=1/6^(1/2)*(3-sqrt(5))^(1/2);&lt;br&gt;&lt;br&gt;                                        (1/2)&lt;br&gt;                   1  (1/2) /     (1/2)\     &lt;br&gt;                   - 6      \3 - 5     /     &lt;br&gt;                   6                         &lt;br&gt;&lt;br&gt;&amp;gt; simplify(radnormal(x),size);&lt;br&gt;&lt;br&gt;                     1  (1/2) / (1/2)    \&lt;br&gt;                     - 3      \5      - 1/&lt;br&gt;                     6                    &lt;br&gt;&lt;br&gt;&amp;gt; x:=1/6^(1/2)*(3+sqrt(5))^(1/2);&lt;br&gt;&lt;br&gt;                                        (1/2)&lt;br&gt;                   1  (1/2) /     (1/2)\     &lt;br&gt;                   - 6      \3 + 5     /     &lt;br&gt;                   6                         &lt;br&gt;&lt;br&gt;&amp;gt; simplify(radnormal(x),size);&lt;br&gt;&lt;br&gt;                     1  (1/2) / (1/2)    \&lt;br&gt;                     - 3      \5      + 1/&lt;br&gt;                     6                    &lt;br&gt;&lt;/pre&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, Converting Half-Angle Trig Formulas to Radicals</description>
      <guid>101758</guid>
      <pubDate>Wed, 16 Feb 2011 21:32:15 Z</pubDate>
      <itunes:author>pagan</itunes:author>
      <author>pagan</author>
    </item>
    <item>
      <title>factor</title>
      <link>http://www.mapleprimes.com/maplesoftblog/101756-Converting-HalfAngle-Trig-Formulas-To-Radicals?ref=Feed:MaplePrimes:Converting Half-Angle Trig Formulas to Radicals:Comments#comment101826</link>
      <itunes:summary>&lt;p&gt;&lt;strong&gt;factor&lt;/strong&gt; does it (except for pulling the common factor out):&lt;/p&gt;
&lt;pre&gt;factor(1/6^(1/2)*(3-sqrt(5))^(1/2));
                             1/2    1/2  1/2
                            3      5    3
                          - ---- + ---------
                             6         6

factor(1/6^(1/2)*(3+sqrt(5))^(1/2));

                            1/2    1/2  1/2
                           3      5    3
                           ---- + ---------
                            6         6
&lt;/pre&gt;
&lt;p&gt;Tracing shows that it does it by writing (3-5^(1/2))^(1/2)=-a/2+a*b/2, where a^2=2 and b^2=5, i.e. basically the same idea:&lt;/p&gt;
&lt;pre&gt;infolevel[all]:=5:
trace(factor):
factor(1/6^(1/2)*(3-sqrt(5))^(1/2));
[...]
radnormal/rational/basis:   basis is   [5, 3, 2]
[...]
          1/2 1/2
    (3 - 5   )    = -1/2 %1 + 1/2 %2 %1],
[...]
               2
%1 := RootOf(_Z  - 2, index = 1)

               2
%2 := RootOf(_Z  - 5, index = 1)
[...]
&lt;/pre&gt;
&lt;p&gt;Then, using &lt;strong&gt;factor&lt;/strong&gt; and &lt;strong&gt;applyrule&lt;/strong&gt;, similarly to the calculation by hand, a simple and uniform approach to all these nine cases is possible, with quite compact results in most of them:&lt;/p&gt;
&lt;pre&gt;r1:=sin(y::algebraic/2)=sqrt((1-cos(y))/2):
r2:=cos(y::algebraic/2)=sqrt((1+cos(y))/2):
r3:=tan(y::algebraic/2)=csc(y)-cot(y):&lt;br&gt;&lt;br&gt;(factor@applyrule)([r1,r2,r3],sin(arcsin(2/3)/2));

                               1/2    1/2
                              3      5
                            - ---- + ----
                               6      2

(factor@applyrule)([r1,r2,r3],cos(arcsin(2/3)/2));

                              1/2    1/2
                             3      5
                             ---- + ----
                              6      2

(factor@applyrule)([r1,r2,r3],tan(arcsin(2/3)/2));

                                     1/2
                                    5
                              3/2 - ----
                                     2

(factor@applyrule)([r1,r2,r3],sin(arccos(2/3)/2));

                               1/2  1/2
                              2    3
                              ---------
                                  6

(factor@applyrule)([r1,r2,r3],cos(arccos(2/3)/2));

                                1/2  1/2
                              10    3
                              ----------
                                  6

(factor@applyrule)([r1,r2,r3],tan(arccos(2/3)/2));

                                  1/2
                                 5
                                 ----
                                  5

(factor@applyrule)([r1,r2,r3],sin(arctan(2/3)/2));

                           /        1/2\1/2
                           |    6 13   |
                           |2 - -------|
                           \      13   /
                           ----------------
                                  2

(factor@applyrule)([r1,r2,r3],cos(arctan(2/3)/2));

                           /        1/2\1/2
                           |    6 13   |
                           |2 + -------|
                           \      13   /
                           ----------------
                                  2

(factor@applyrule)([r1,r2,r3],tan(arctan(2/3)/2));

                               1/2
                             13
                             ----- - 3/2
                               2
&lt;/pre&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, Converting Half-Angle Trig Formulas to Radicals</description>
      <guid>101826</guid>
      <pubDate>Sat, 19 Feb 2011 07:38:01 Z</pubDate>
      <itunes:author>Alejandro Jakubi</itunes:author>
      <author>Alejandro Jakubi</author>
    </item>
    <item>
      <title>applyrule is elegant, but...</title>
      <link>http://www.mapleprimes.com/maplesoftblog/101756-Converting-HalfAngle-Trig-Formulas-To-Radicals?ref=Feed:MaplePrimes:Converting Half-Angle Trig Formulas to Radicals:Comments#comment101924</link>
      <itunes:summary>&lt;p&gt;&amp;nbsp;I am edified by the comment demonstrating the use of rules and the applyrule command. However, the rules for sine and cosine are quadrant-dependent. This approach is useful when the quadrant of the angle is known. Otherwise, a sign error could be introduced.&lt;/p&gt;
&lt;p&gt;But the illustration of the use of applyrule is quite valuable and has been added to the Little Red Book.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;RJL Maplesoft&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, Converting Half-Angle Trig Formulas to Radicals</description>
      <guid>101924</guid>
      <pubDate>Wed, 23 Feb 2011 19:37:39 Z</pubDate>
      <itunes:author>rlopez</itunes:author>
      <author>rlopez</author>
    </item>
    <item>
      <title>conditional</title>
      <link>http://www.mapleprimes.com/maplesoftblog/101756-Converting-HalfAngle-Trig-Formulas-To-Radicals?ref=Feed:MaplePrimes:Converting Half-Angle Trig Formulas to Radicals:Comments#comment101935</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/maplesoftblog/101756-Converting-HalfAngle-Trig-Formulas-To-Radicals#comment101924"&gt;@rlopez&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The quadrant-dependence can be handled by &lt;strong&gt;conditional&lt;/strong&gt; rules, like:&lt;/p&gt;
&lt;pre&gt;r:=[conditional(sin(x::algebraic) =sqrt((1-cos(2*x))*(1/2)), _is(sin(x)&amp;gt;=0)), &lt;br&gt;conditional(sin(x::algebraic) =-sqrt((1-cos(2*x))*(1/2)), _is(sin(x)&amp;lt;0))]:

applyrule(r,sin(u)) assuming 0&amp;lt;u,u&amp;lt;Pi;
                                           1/2
                       1/2 (2 - 2 cos(2 u))

applyrule(r,sin(u)) assuming Pi&amp;lt;u,u&amp;lt;2*Pi;

                                            1/2
                       -1/2 (2 - 2 cos(2 u))

&lt;/pre&gt;
&lt;p&gt;Indeed, there are here two weaknesses in Maple that need to be addressed:&lt;/p&gt;
&lt;p&gt;1. Properties like the expression &lt;strong&gt;x&lt;/strong&gt; in [2*k*Pi, (2*k+1)*Pi] when &lt;strong&gt;k&lt;/strong&gt; is integer. A good representation of predicates and "abstract" sets in their terms is missing. This is why I am using instead a condition on the sign of &lt;strong&gt;sin(x)&lt;/strong&gt; for the case of &lt;strong&gt;x&lt;/strong&gt; a name.&lt;/p&gt;
&lt;p&gt;2. Handling properties, like the sign, with nested functions:&lt;/p&gt;
&lt;pre&gt;is(sin((1/2)*arctan(v, u))&amp;gt;0) assuming v&amp;lt;0,u&amp;gt;0;
                                 FAIL
&lt;/pre&gt;
&lt;p&gt;Meeting weakness 2 is a consequence of weakness 1. I have made some progress in a workaround for 2.&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, Converting Half-Angle Trig Formulas to Radicals</description>
      <guid>101935</guid>
      <pubDate>Wed, 23 Feb 2011 23:48:03 Z</pubDate>
      <itunes:author>Alejandro Jakubi</itunes:author>
      <author>Alejandro Jakubi</author>
    </item>
    <item>
      <title>conditional</title>
      <link>http://www.mapleprimes.com/maplesoftblog/101756-Converting-HalfAngle-Trig-Formulas-To-Radicals?ref=Feed:MaplePrimes:Converting Half-Angle Trig Formulas to Radicals:Comments#comment101941</link>
      <itunes:summary>&lt;p&gt;&amp;nbsp;Thanks, Alejandro. I appreciate your continued development of this topic.&lt;/p&gt;
&lt;!--break--&gt;
&lt;p&gt;RJL Maplesoft&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, Converting Half-Angle Trig Formulas to Radicals</description>
      <guid>101941</guid>
      <pubDate>Thu, 24 Feb 2011 01:22:09 Z</pubDate>
      <itunes:author>rlopez</itunes:author>
      <author>rlopez</author>
    </item>
    <item>
      <title>identify</title>
      <link>http://www.mapleprimes.com/maplesoftblog/101756-Converting-HalfAngle-Trig-Formulas-To-Radicals?ref=Feed:MaplePrimes:Converting Half-Angle Trig Formulas to Radicals:Comments#comment120376</link>
      <itunes:summary>&lt;pre&gt;Digits:=15:
Matrix(3,(i,j)-&amp;gt;identify(evalf([sin,cos,tan][i]([arcsin,arccos,arctan][j](2/3)/2))));
&lt;/pre&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=120376/383535/Matrix3.png"&gt;&lt;img style="display: block; margin-left: auto; margin-right: auto;" src="/view.aspx?sf=120376/383535/Matrix3.png" alt="Matrix(3,3,{(1, 1) = 1/6*15^(1/2)-1/6*3^(1/2), (1, 2) = 1/6*6^(1/2), (1, 3) = 1/26*(338-78*13^(1/2))^(1/2), (2, 1) = 1/6*15^(1/2)+1/6*3^(1/2), (2, 2) = 1/6*30^(1/2), (2, 3) = 1/26*(338+78*13^(1/2))^(1/2), (3, 1) = 3/2-1/2*5^(1/2), (3, 2) = 1/5*5^(1/2), (3, 3) = -3/2+1/2*13^(1/2)},datatype = anything,storage = rectangular,order = Fortran_order,shape = [])"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The first 2 rows can be also obtained in a uniform fashion as&lt;/p&gt;
&lt;pre&gt;Matrix(2,3,(i,j)-&amp;gt;sqrt(combine([sin,cos][i]([arcsin,arccos,arctan][j](2/3)/2)^2)));
&lt;/pre&gt;
&lt;p&gt;And the 3rd row can be calculated as&lt;/p&gt;
&lt;pre&gt;radnormal~(%[1]/~%[2],rationalized);&lt;/pre&gt;
&lt;p&gt;_______________&lt;br&gt; Alec Mihailovs, PhD&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Blog Entry, Converting Half-Angle Trig Formulas to Radicals</description>
      <guid>120376</guid>
      <pubDate>Wed, 25 May 2011 12:45:20 Z</pubDate>
      <itunes:author>Alec Mihailovs</itunes:author>
      <author>Alec Mihailovs</author>
    </item>
  </channel>
</rss>