<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, why does evalc give csgn?</title>
    <link>http://www.mapleprimes.com/questions/123906-Why-Does-Evalc-Give-Csgn</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sat, 13 Jun 2026 23:59:54 GMT</lastBuildDate>
    <pubDate>Sat, 13 Jun 2026 23:59:54 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, why does evalc give csgn?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, why does evalc give csgn?</title>
      <link>http://www.mapleprimes.com/questions/123906-Why-Does-Evalc-Give-Csgn</link>
    </image>
    <item>
      <title>csgn</title>
      <link>http://www.mapleprimes.com/questions/123906-Why-Does-Evalc-Give-Csgn?ref=Feed:MaplePrimes:why does evalc give csgn?:Comments#answer123908</link>
      <itunes:summary>&lt;p&gt;csgn is a complex version of the signum function.&amp;nbsp; It is 1 for a number in the right half-plane and -1 for a number in the left half-plane.&amp;nbsp;&amp;nbsp; It will typically occur when using evalc on an expression containing square roots of complex expressions.&amp;nbsp; For example:&lt;br&gt;&lt;br&gt;&amp;gt; evalc(sqrt(a+b*I));&lt;/p&gt;
&lt;p&gt;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=9b17df2056571cb96182419197d39dc4.gif" alt="1/2*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)-1/2*I*csgn(-b+a*I)*(2*(a^2+b^2)^(1/2)-2*a)^(1/2)"&gt;&lt;/p&gt;
&lt;p&gt;Note that any expression for this will have to be discontinuous on the negative real axis (which is the branch cut of the principal branch of the square root), and this discontinuity is provided by the csgn.&lt;/p&gt;
&lt;p&gt;In your case, the result of evalc contains&lt;/p&gt;
&lt;p&gt;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=2b3e22461a2737b13c1a85f2d6707a04.gif" alt="csgn(-16*beta^3*Q^2*Pi^3+16*I*Pi^4*beta^2*Q^2+16*I*Pi^4-4*I*Pi^2*beta^4*Q^2+8*I*Pi^2*beta^2+beta^4*I)"&gt;and&lt;/p&gt;
&lt;p&gt;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=0fb7d085d3b9f8d9627e3755836ba70a.gif" alt="csgn(16*beta^3*Q^2*Pi^3+16*I*Pi^4*beta^2*Q^2+16*I*Pi^4-4*I*Pi^2*beta^4*Q^2+8*I*Pi^2*beta^2+beta^4*I)"&gt;&lt;/p&gt;
&lt;p&gt;Assumptions such as beta &amp;gt; 0, Q &amp;gt; 0 should remove the need for csgn.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;csgn is a complex version of the signum function.&amp;nbsp; It is 1 for a number in the right half-plane and -1 for a number in the left half-plane.&amp;nbsp;&amp;nbsp; It will typically occur when using evalc on an expression containing square roots of complex expressions.&amp;nbsp; For example:&lt;br&gt;&lt;br&gt;&amp;gt; evalc(sqrt(a+b*I));&lt;/p&gt;
&lt;p&gt;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=9b17df2056571cb96182419197d39dc4.gif" alt="1/2*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)-1/2*I*csgn(-b+a*I)*(2*(a^2+b^2)^(1/2)-2*a)^(1/2)"&gt;&lt;/p&gt;
&lt;p&gt;Note that any expression for this will have to be discontinuous on the negative real axis (which is the branch cut of the principal branch of the square root), and this discontinuity is provided by the csgn.&lt;/p&gt;
&lt;p&gt;In your case, the result of evalc contains&lt;/p&gt;
&lt;p&gt;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=2b3e22461a2737b13c1a85f2d6707a04.gif" alt="csgn(-16*beta^3*Q^2*Pi^3+16*I*Pi^4*beta^2*Q^2+16*I*Pi^4-4*I*Pi^2*beta^4*Q^2+8*I*Pi^2*beta^2+beta^4*I)"&gt;and&lt;/p&gt;
&lt;p&gt;&lt;img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=0fb7d085d3b9f8d9627e3755836ba70a.gif" alt="csgn(16*beta^3*Q^2*Pi^3+16*I*Pi^4*beta^2*Q^2+16*I*Pi^4-4*I*Pi^2*beta^4*Q^2+8*I*Pi^2*beta^2+beta^4*I)"&gt;&lt;/p&gt;
&lt;p&gt;Assumptions such as beta &amp;gt; 0, Q &amp;gt; 0 should remove the need for csgn.&lt;/p&gt;</description>
      <guid>123908</guid>
      <pubDate>Sun, 17 Jul 2011 11:51:58 Z</pubDate>
      <itunes:author>Robert Israel</itunes:author>
      <author>Robert Israel</author>
    </item>
  </channel>
</rss>