<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, How to plot a function under constraint</title>
    <link>http://www.mapleprimes.com/questions/102200-How-To-Plot-A-Function-Under-Constraint</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 21:48:42 GMT</lastBuildDate>
    <pubDate>Sat, 13 Jun 2026 21:48:42 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, How to plot a function under constraint</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, How to plot a function under constraint</title>
      <link>http://www.mapleprimes.com/questions/102200-How-To-Plot-A-Function-Under-Constraint</link>
    </image>
    <item>
      <title>By  procedure</title>
      <link>http://www.mapleprimes.com/questions/102200-How-To-Plot-A-Function-Under-Constraint?ref=Feed:MaplePrimes:How to plot a function under constraint:Comments#answer102203</link>
      <itunes:summary>&lt;p&gt;&lt;a href="/view.aspx?sf=102203/320788/plo3d.jpg"&gt;&lt;/a&gt;A very similar question was asked a few months ago. It can be done as follows.&lt;br&gt;&amp;gt; f := proc (m, lambda) if 0 &amp;lt; (m+lambda)*20.004936*(1-sqrt(lambda*m))-3*lambda&amp;nbsp; then 0.1281008386e-3*m*lambda*(20.004936*lambda+21.004936*m+1)^2/(m+lambda)^2+0.1281008386e-3*(21.004936*lambda+21.004936*m-m*(1-lambda))^2/(m+lambda)^2-0.2690752038e-2-0.2690752038e-2*m*lambda end if end proc;&lt;br&gt;&amp;gt; with(plots): plot3d(f, .1 .. 1, .1 .. 1, axes = box, numpoints = 100000, style = surface);&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=102203/320788/plo3d.jpg"&gt;&lt;img src="/view.aspx?sf=102203/320788/plo3d.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="/view.aspx?sf=102203/320788/plo3d.jpg"&gt;&lt;/a&gt;A very similar question was asked a few months ago. It can be done as follows.&lt;br&gt;&amp;gt; f := proc (m, lambda) if 0 &amp;lt; (m+lambda)*20.004936*(1-sqrt(lambda*m))-3*lambda&amp;nbsp; then 0.1281008386e-3*m*lambda*(20.004936*lambda+21.004936*m+1)^2/(m+lambda)^2+0.1281008386e-3*(21.004936*lambda+21.004936*m-m*(1-lambda))^2/(m+lambda)^2-0.2690752038e-2-0.2690752038e-2*m*lambda end if end proc;&lt;br&gt;&amp;gt; with(plots): plot3d(f, .1 .. 1, .1 .. 1, axes = box, numpoints = 100000, style = surface);&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=102203/320788/plo3d.jpg"&gt;&lt;img src="/view.aspx?sf=102203/320788/plo3d.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>102203</guid>
      <pubDate>Fri, 04 Mar 2011 17:07:40 Z</pubDate>
      <itunes:author>hirnyk</itunes:author>
      <author>hirnyk</author>
    </item>
    <item>
      <title>Puzzling combined plot of restricted and not restricted function</title>
      <link>http://www.mapleprimes.com/questions/102200-How-To-Plot-A-Function-Under-Constraint?ref=Feed:MaplePrimes:How to plot a function under constraint:Comments#comment102205</link>
      <itunes:summary>&lt;p&gt;Dear hirnyk1222,&lt;/p&gt;
&lt;p&gt;Thanks for your answer!&lt;/p&gt;
&lt;p&gt;I have one more question.&lt;/p&gt;
&lt;p&gt;In the procedure I have added one more constraint (lambda&amp;gt;(1/2+m)). When I conbine the plot of the general function&amp;nbsp;(without restriction) with the plot of the restricted&amp;nbsp;function, the area of the restricted function lies outside the area of the general function which should not be possible. As normally speaking one would expect the area of the restriced function to fall in the certain part of the are of the general function.&lt;/p&gt;
&lt;p&gt;Do you have any idea what went wrong? Please have a look at the maple file attached &lt;a href="/view.aspx?sf=102205/320792/Constraints_done_for.mw"&gt;Constraints_done_for.mw&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Thank you in advance,&lt;/p&gt;
&lt;p&gt;Olga&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Dear hirnyk1222,&lt;/p&gt;
&lt;p&gt;Thanks for your answer!&lt;/p&gt;
&lt;p&gt;I have one more question.&lt;/p&gt;
&lt;p&gt;In the procedure I have added one more constraint (lambda&amp;gt;(1/2+m)). When I conbine the plot of the general function&amp;nbsp;(without restriction) with the plot of the restricted&amp;nbsp;function, the area of the restricted function lies outside the area of the general function which should not be possible. As normally speaking one would expect the area of the restriced function to fall in the certain part of the are of the general function.&lt;/p&gt;
&lt;p&gt;Do you have any idea what went wrong? Please have a look at the maple file attached &lt;a href="/view.aspx?sf=102205/320792/Constraints_done_for.mw"&gt;Constraints_done_for.mw&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Thank you in advance,&lt;/p&gt;
&lt;p&gt;Olga&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>102205</guid>
      <pubDate>Fri, 04 Mar 2011 20:58:11 Z</pubDate>
      <itunes:author>res assistant1</itunes:author>
      <author>res assistant1</author>
    </item>
    <item>
      <title>Two changes</title>
      <link>http://www.mapleprimes.com/questions/102200-How-To-Plot-A-Function-Under-Constraint?ref=Feed:MaplePrimes:How to plot a function under constraint:Comments#comment102206</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/102200-How-To-Plot-A-Function-Under-Constraint#comment102205"&gt;@res assistant1&lt;/a&gt; If we increase numpoints&amp;nbsp; and replace lambda and m in the parameters of the procedure f:=proc(m,lambda)... end proc (The constraints (&lt;strong&gt;Edit.&lt;/strong&gt; and the function d) are not symmetric in m and lambda.), then that's all right. See &lt;a href="/view.aspx?sf=102206/320794/adjustedConstraints_.mw"&gt;adjustedConstraints_.mw&lt;/a&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/102200-How-To-Plot-A-Function-Under-Constraint#comment102205"&gt;@res assistant1&lt;/a&gt; If we increase numpoints&amp;nbsp; and replace lambda and m in the parameters of the procedure f:=proc(m,lambda)... end proc (The constraints (&lt;strong&gt;Edit.&lt;/strong&gt; and the function d) are not symmetric in m and lambda.), then that's all right. See &lt;a href="/view.aspx?sf=102206/320794/adjustedConstraints_.mw"&gt;adjustedConstraints_.mw&lt;/a&gt;&lt;/p&gt;</description>
      <guid>102206</guid>
      <pubDate>Fri, 04 Mar 2011 22:10:20 Z</pubDate>
      <itunes:author>hirnyk</itunes:author>
      <author>hirnyk</author>
    </item>
    <item>
      <title>as Maple 9.5</title>
      <link>http://www.mapleprimes.com/questions/102200-How-To-Plot-A-Function-Under-Constraint?ref=Feed:MaplePrimes:How to plot a function under constraint:Comments#comment102378</link>
      <itunes:summary>&lt;p&gt;Did not look closer, but here in Maple 9.5 (as you ask in a branch to this thread - plot3d is different) what hirnyk said, as attached zipped sheet&lt;/p&gt;
&lt;p&gt;To avoid the graph is dropping to zero level: should be through your if ... without else, may be else NULL can help&lt;br&gt;&lt;br&gt;&lt;a href="/view.aspx?sf=102378/321137/adjustedConstraints_.zip"&gt;adjustedConstraints_.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: No need to branch into a new thread ...&lt;/p&gt;
&lt;p&gt;PPS: &lt;strong&gt;how ugly&lt;/strong&gt;, that cutting down filenames to only some characters does not allow to distinguish on the local machine - can one finitely remove that technical nonsense?&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Did not look closer, but here in Maple 9.5 (as you ask in a branch to this thread - plot3d is different) what hirnyk said, as attached zipped sheet&lt;/p&gt;
&lt;p&gt;To avoid the graph is dropping to zero level: should be through your if ... without else, may be else NULL can help&lt;br&gt;&lt;br&gt;&lt;a href="/view.aspx?sf=102378/321137/adjustedConstraints_.zip"&gt;adjustedConstraints_.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PS: No need to branch into a new thread ...&lt;/p&gt;
&lt;p&gt;PPS: &lt;strong&gt;how ugly&lt;/strong&gt;, that cutting down filenames to only some characters does not allow to distinguish on the local machine - can one finitely remove that technical nonsense?&lt;/p&gt;</description>
      <guid>102378</guid>
      <pubDate>Thu, 10 Mar 2011 02:06:26 Z</pubDate>
      <itunes:author>Axel Vogt</itunes:author>
      <author>Axel Vogt</author>
    </item>
  </channel>
</rss>