<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Why doesn't discont=true work in this case?</title>
    <link>http://www.mapleprimes.com/questions/126162-Why-Doesnt-Disconttrue-Work-In-This-Case</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 07:40:34 GMT</lastBuildDate>
    <pubDate>Fri, 12 Jun 2026 07:40:34 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Why doesn't discont=true work in this case?</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Why doesn't discont=true work in this case?</title>
      <link>http://www.mapleprimes.com/questions/126162-Why-Doesnt-Disconttrue-Work-In-This-Case</link>
    </image>
    <item>
      <title>fdiscont</title>
      <link>http://www.mapleprimes.com/questions/126162-Why-Doesnt-Disconttrue-Work-In-This-Case?ref=Feed:MaplePrimes:Why doesn't discont=true work in this case?:Comments#answer126165</link>
      <itunes:summary>&lt;p&gt;It looks like `fdiscont` has more success than symbolic `discont` here.&lt;/p&gt;
&lt;p&gt;Try these,&lt;/p&gt;
&lt;pre&gt;plot(F(x),x=-1..27,y=0..0.5,gridlines=true,discont=true,usefdiscont);

plot(F(x),x=-1..27,y=0..0.5,gridlines=true,discont=[usefdiscont]);
&lt;/pre&gt;
&lt;p&gt;The following also gets it right. I suspect that's because `discont` needs an expression (like your unevaluated F(x) as the first argument to `plot`). So, since `discont` doesn't accept an operator, like just &lt;em&gt;F&lt;/em&gt; instead of &lt;em&gt;F(x)&lt;/em&gt;, then plot has to fall back to using `fdiscont`.&lt;/p&gt;
&lt;pre&gt;plot(F,-1..27,0..0.5,gridlines=true,discont=true);
&lt;/pre&gt;
&lt;!--break--&gt;
&lt;p&gt;The first pair were about 2-3 times faster than the last one.&lt;/p&gt;
&lt;p&gt;It might look more legible (to some people), but creating an operator like `F` &lt;strong&gt;&lt;em&gt;only&lt;/em&gt;&lt;/strong&gt; so that it can ever get used as a function call like F(x) is something that often leads to confusion because it muddles unnecessarily with the distinction between operator and expression. You didn't encounter it here (maybe because the `Statistics` author went gone to extra pains to anticipate it) but this confusion often results in an error message, when the operator is prematurely evaluated at symbolic `x` while it is only prepared to handle numeric values for parameter x.&lt;/p&gt;
&lt;p&gt;Another possibility that works is,&lt;/p&gt;
&lt;pre&gt;plot(CDF(X,x),x=-1..27,y=0..0.5,gridlines=true,discont=[usefdiscont]);
&lt;/pre&gt;
&lt;p&gt;where once again, the piecewise symbolic result from CDF(X,x) may not get best result from symbolic `discont`.&lt;/p&gt;
&lt;p&gt;acer&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;It looks like `fdiscont` has more success than symbolic `discont` here.&lt;/p&gt;
&lt;p&gt;Try these,&lt;/p&gt;
&lt;pre&gt;plot(F(x),x=-1..27,y=0..0.5,gridlines=true,discont=true,usefdiscont);

plot(F(x),x=-1..27,y=0..0.5,gridlines=true,discont=[usefdiscont]);
&lt;/pre&gt;
&lt;p&gt;The following also gets it right. I suspect that's because `discont` needs an expression (like your unevaluated F(x) as the first argument to `plot`). So, since `discont` doesn't accept an operator, like just &lt;em&gt;F&lt;/em&gt; instead of &lt;em&gt;F(x)&lt;/em&gt;, then plot has to fall back to using `fdiscont`.&lt;/p&gt;
&lt;pre&gt;plot(F,-1..27,0..0.5,gridlines=true,discont=true);
&lt;/pre&gt;
&lt;!--break--&gt;
&lt;p&gt;The first pair were about 2-3 times faster than the last one.&lt;/p&gt;
&lt;p&gt;It might look more legible (to some people), but creating an operator like `F` &lt;strong&gt;&lt;em&gt;only&lt;/em&gt;&lt;/strong&gt; so that it can ever get used as a function call like F(x) is something that often leads to confusion because it muddles unnecessarily with the distinction between operator and expression. You didn't encounter it here (maybe because the `Statistics` author went gone to extra pains to anticipate it) but this confusion often results in an error message, when the operator is prematurely evaluated at symbolic `x` while it is only prepared to handle numeric values for parameter x.&lt;/p&gt;
&lt;p&gt;Another possibility that works is,&lt;/p&gt;
&lt;pre&gt;plot(CDF(X,x),x=-1..27,y=0..0.5,gridlines=true,discont=[usefdiscont]);
&lt;/pre&gt;
&lt;p&gt;where once again, the piecewise symbolic result from CDF(X,x) may not get best result from symbolic `discont`.&lt;/p&gt;
&lt;p&gt;acer&lt;/p&gt;</description>
      <guid>126165</guid>
      <pubDate>Sun, 02 Oct 2011 08:50:15 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
  </channel>
</rss>