<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, Problem with procedures</title>
    <link>http://www.mapleprimes.com/questions/35820-Problem-With-Procedures</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Wed, 10 Jun 2026 12:31:13 GMT</lastBuildDate>
    <pubDate>Wed, 10 Jun 2026 12:31:13 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, Problem with procedures</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, Problem with procedures</title>
      <link>http://www.mapleprimes.com/questions/35820-Problem-With-Procedures</link>
    </image>
    <item>
      <title>use these procedures with ScientificErrorAnalysis</title>
      <link>http://www.mapleprimes.com/questions/35820-Problem-With-Procedures?ref=Feed:MaplePrimes:Problem with procedures:Comments#answer45238</link>
      <itunes:summary>&lt;p&gt;You have written&lt;/p&gt;
&lt;pre&gt;
dWdt := proc (t::float)...&lt;/pre&gt;
&lt;p&gt;I.e., you request that the argument of &lt;b&gt;dWdt&lt;/b&gt; be of type &lt;b&gt;float&lt;/b&gt;. But the &lt;b&gt;ScientificErrorAnalysis:-Quantity&lt;/b&gt; object is not of type float:&lt;/p&gt;
&lt;pre&gt;
type(ScientificErrorAnalysis:-Quantity(231.928, 0.5e-2),function);
                                 true

type(ScientificErrorAnalysis:-Quantity(231.928, 0.5e-2),float);
                                false
&lt;/pre&gt;
&lt;p&gt;Hence, the error message.&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;You have written&lt;/p&gt;
&lt;pre&gt;
dWdt := proc (t::float)...&lt;/pre&gt;
&lt;p&gt;I.e., you request that the argument of &lt;b&gt;dWdt&lt;/b&gt; be of type &lt;b&gt;float&lt;/b&gt;. But the &lt;b&gt;ScientificErrorAnalysis:-Quantity&lt;/b&gt; object is not of type float:&lt;/p&gt;
&lt;pre&gt;
type(ScientificErrorAnalysis:-Quantity(231.928, 0.5e-2),function);
                                 true

type(ScientificErrorAnalysis:-Quantity(231.928, 0.5e-2),float);
                                false
&lt;/pre&gt;
&lt;p&gt;Hence, the error message.&lt;/p&gt;</description>
      <guid>45238</guid>
      <pubDate>Thu, 04 Feb 2010 11:29:05 Z</pubDate>
      <itunes:author>jakubi</itunes:author>
      <author>jakubi</author>
    </item>
    <item>
      <title>keeping the float condition </title>
      <link>http://www.mapleprimes.com/questions/35820-Problem-With-Procedures?ref=Feed:MaplePrimes:Problem with procedures:Comments#answer45239</link>
      <itunes:summary>&lt;pre&gt;&lt;span class="long_text" id="result_box"&gt;&lt;span title="Gracias Jakubi," style="background-color: #fff" closure_hashcode_u5jtzv="46"&gt;Thanks Jakubi,&lt;br /&gt;&lt;/span&gt;&lt;span title="No estoy claro, Ud me propones eliminar del procedimiento la declaraci&amp;oacute;n de variable flaot?" style="background-color: #fff" closure_hashcode_u5jtzv="47"&gt;I'm clear, you suggest&amp;nbsp; remove the variable declaration 
procedure flaot?&lt;br /&gt;&lt;/span&gt;&lt;span title="De qu&amp;eacute; otra forma, pudiera declarar las variables, manteniendo la condici&amp;oacute;n float; y que pueda ser utilizado el procedimiento con el paquete ScientificErrorAnalysis?" style="background-color: #fff" closure_hashcode_u5jtzv="48"&gt;How else, could declare variables, keeping the float condition 
and that the procedure can be used 
with the package ScientificErrorAnalysis?

&lt;br /&gt;&lt;/span&gt;&lt;span title="Qu&amp;eacute; se puede decir al respecto del primer punto :" style="background-color: #fff" closure_hashcode_u5jtzv="49"&gt;What can you say about the first point:&lt;br /&gt;&lt;/span&gt;&lt;span title="1- I do not understand because I get different values when evaluating different significant figures." style="background-color: #fff" closure_hashcode_u5jtzv="50"&gt;1 - I do not understand because i get different values 
when evaluating different significant figures.

&lt;br /&gt;&lt;/span&gt;&lt;span title="Gracias." closure_hashcode_u5jtzv="51"&gt;Thank you.&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;</itunes:summary>
      <description>&lt;pre&gt;&lt;span class="long_text" id="result_box"&gt;&lt;span title="Gracias Jakubi," style="background-color: #fff" closure_hashcode_u5jtzv="46"&gt;Thanks Jakubi,&lt;br /&gt;&lt;/span&gt;&lt;span title="No estoy claro, Ud me propones eliminar del procedimiento la declaraci&amp;oacute;n de variable flaot?" style="background-color: #fff" closure_hashcode_u5jtzv="47"&gt;I'm clear, you suggest&amp;nbsp; remove the variable declaration 
procedure flaot?&lt;br /&gt;&lt;/span&gt;&lt;span title="De qu&amp;eacute; otra forma, pudiera declarar las variables, manteniendo la condici&amp;oacute;n float; y que pueda ser utilizado el procedimiento con el paquete ScientificErrorAnalysis?" style="background-color: #fff" closure_hashcode_u5jtzv="48"&gt;How else, could declare variables, keeping the float condition 
and that the procedure can be used 
with the package ScientificErrorAnalysis?

&lt;br /&gt;&lt;/span&gt;&lt;span title="Qu&amp;eacute; se puede decir al respecto del primer punto :" style="background-color: #fff" closure_hashcode_u5jtzv="49"&gt;What can you say about the first point:&lt;br /&gt;&lt;/span&gt;&lt;span title="1- I do not understand because I get different values when evaluating different significant figures." style="background-color: #fff" closure_hashcode_u5jtzv="50"&gt;1 - I do not understand because i get different values 
when evaluating different significant figures.

&lt;br /&gt;&lt;/span&gt;&lt;span title="Gracias." closure_hashcode_u5jtzv="51"&gt;Thank you.&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;</description>
      <guid>45239</guid>
      <pubDate>Fri, 05 Feb 2010 19:59:00 Z</pubDate>
      <itunes:author>herclau</itunes:author>
      <author>herclau</author>
    </item>
    <item>
      <title>adjustment in the code?</title>
      <link>http://www.mapleprimes.com/questions/35820-Problem-With-Procedures?ref=Feed:MaplePrimes:Problem with procedures:Comments#answer45241</link>
      <itunes:summary>&lt;pre&gt;
Thanks Jakubi,
I will it. It's that simple? 
Or should I make any further adjustment in the code?&lt;/pre&gt;</itunes:summary>
      <description>&lt;pre&gt;
Thanks Jakubi,
I will it. It's that simple? 
Or should I make any further adjustment in the code?&lt;/pre&gt;</description>
      <guid>45241</guid>
      <pubDate>Sat, 06 Feb 2010 00:54:25 Z</pubDate>
      <itunes:author>herclau</itunes:author>
      <author>herclau</author>
    </item>
    <item>
      <title>No results found</title>
      <link>http://www.mapleprimes.com/questions/35820-Problem-With-Procedures?ref=Feed:MaplePrimes:Problem with procedures:Comments#answer45244</link>
      <itunes:summary>&lt;p&gt;I've implemented it targeted. No results found.&lt;/p&gt;
&lt;p&gt;dWdtSEA := proc (t::{float, specfunc(anything,ScientificErrorAnalysis:-Quantity)}) &lt;br /&gt;
&amp;nbsp;local DW, DW2, T; &lt;br /&gt;
description &amp;quot;Se calcula dWdt&amp;nbsp; seg&amp;uacute;n el valor de temperatura&amp;quot;; &lt;br /&gt;
T := t+273.15; if 273.15 &amp;lt;= T then&lt;br /&gt;
&amp;nbsp;DW := add(((1/481)*i-1/481)*C[i, 1]*((1/481)*T+(-1/481)*754.15)^(i-2), i = 2 .. 10) &lt;br /&gt;
else &lt;br /&gt;
DW2 := add((i-1)*A[i, 1]*((ln(T/273.16)+1.5)/1.5)^(i-2)/(1.5*T), i = 2 .. 13); &lt;br /&gt;
DW := Wr(t)*DW2 &lt;br /&gt;
end if; &lt;br /&gt;
evalf[9](DW) &lt;br /&gt;
end proc;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;p&gt;t := Quantity(ta, dt, relative);&lt;/p&gt;
&lt;p&gt;t := Quantity(ta, dt*ta)&lt;/p&gt;
&lt;p&gt;combine(dWdtSEA(t), errors, correlations = false);&lt;/p&gt;
&lt;p&gt;Error, (in dWdtSEA) cannot determine if this expression is true or false: 0. &amp;lt;= ScientificErrorAnalysis:-Quantity(ta, dt*ta)&lt;/p&gt;
&lt;p&gt;t1 := Quantity(ta, dt);&lt;/p&gt;
&lt;p&gt;t1 := Quantity(ta, dt)&lt;/p&gt;
&lt;p&gt;combine(dWdtSEA(t1), errors);&lt;/p&gt;
&lt;p&gt;Error, (in dWdtSEA) cannot determine if this expression is true or false: 0. &amp;lt;= ScientificErrorAnalysis:-Quantity(ta, dt)&lt;/p&gt;
&lt;p&gt;evalf(t); ScientificErrorAnalysis:-GetError(t);&lt;br /&gt;
ta&lt;br /&gt;
dt*ta&lt;/p&gt;
&lt;p&gt;y:=combine(dWdtSEA(t1), errors);&lt;br /&gt;
Error, (in dWdtSEA) cannot determine if this expression is true or false: 0. &amp;lt;= ScientificErrorAnalysis:-Quantity(ta, dt)&lt;/p&gt;
&lt;p&gt;evalf(y); ScientificErrorAnalysis:-GetError(y);&lt;br /&gt;
y&lt;br /&gt;
Error, (in ScientificErrorAnalysis:-GetError) expecting a quantity-with-error structure, but got y&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
Thank you.&lt;/p&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;I've implemented it targeted. No results found.&lt;/p&gt;
&lt;p&gt;dWdtSEA := proc (t::{float, specfunc(anything,ScientificErrorAnalysis:-Quantity)}) &lt;br /&gt;
&amp;nbsp;local DW, DW2, T; &lt;br /&gt;
description &amp;quot;Se calcula dWdt&amp;nbsp; seg&amp;uacute;n el valor de temperatura&amp;quot;; &lt;br /&gt;
T := t+273.15; if 273.15 &amp;lt;= T then&lt;br /&gt;
&amp;nbsp;DW := add(((1/481)*i-1/481)*C[i, 1]*((1/481)*T+(-1/481)*754.15)^(i-2), i = 2 .. 10) &lt;br /&gt;
else &lt;br /&gt;
DW2 := add((i-1)*A[i, 1]*((ln(T/273.16)+1.5)/1.5)^(i-2)/(1.5*T), i = 2 .. 13); &lt;br /&gt;
DW := Wr(t)*DW2 &lt;br /&gt;
end if; &lt;br /&gt;
evalf[9](DW) &lt;br /&gt;
end proc;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;p&gt;t := Quantity(ta, dt, relative);&lt;/p&gt;
&lt;p&gt;t := Quantity(ta, dt*ta)&lt;/p&gt;
&lt;p&gt;combine(dWdtSEA(t), errors, correlations = false);&lt;/p&gt;
&lt;p&gt;Error, (in dWdtSEA) cannot determine if this expression is true or false: 0. &amp;lt;= ScientificErrorAnalysis:-Quantity(ta, dt*ta)&lt;/p&gt;
&lt;p&gt;t1 := Quantity(ta, dt);&lt;/p&gt;
&lt;p&gt;t1 := Quantity(ta, dt)&lt;/p&gt;
&lt;p&gt;combine(dWdtSEA(t1), errors);&lt;/p&gt;
&lt;p&gt;Error, (in dWdtSEA) cannot determine if this expression is true or false: 0. &amp;lt;= ScientificErrorAnalysis:-Quantity(ta, dt)&lt;/p&gt;
&lt;p&gt;evalf(t); ScientificErrorAnalysis:-GetError(t);&lt;br /&gt;
ta&lt;br /&gt;
dt*ta&lt;/p&gt;
&lt;p&gt;y:=combine(dWdtSEA(t1), errors);&lt;br /&gt;
Error, (in dWdtSEA) cannot determine if this expression is true or false: 0. &amp;lt;= ScientificErrorAnalysis:-Quantity(ta, dt)&lt;/p&gt;
&lt;p&gt;evalf(y); ScientificErrorAnalysis:-GetError(y);&lt;br /&gt;
y&lt;br /&gt;
Error, (in ScientificErrorAnalysis:-GetError) expecting a quantity-with-error structure, but got y&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;
Thank you.&lt;/p&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;</description>
      <guid>45244</guid>
      <pubDate>Mon, 08 Feb 2010 19:14:17 Z</pubDate>
      <itunes:author>herclau</itunes:author>
      <author>herclau</author>
    </item>
    <item>
      <title>boolean</title>
      <link>http://www.mapleprimes.com/questions/35820-Problem-With-Procedures?ref=Feed:MaplePrimes:Problem with procedures:Comments#answer45245</link>
      <itunes:summary>&lt;p&gt;Boolean expressions do not include &lt;b&gt;ScientificErrorAnalysis:-Quantity&lt;/b&gt; objects (actually, ?boolean is not very explicit).  For them, as explained above, you have to extract the magnitude by &lt;b&gt;evalf&lt;/b&gt;:&lt;/p&gt;
&lt;pre&gt;
if evalf(ScientificErrorAnalysis:-Quantity( 2.3, 0.1))&amp;lt;1 then 1 
else 0 end if;
                                  0
&lt;/pre&gt;</itunes:summary>
      <description>&lt;p&gt;Boolean expressions do not include &lt;b&gt;ScientificErrorAnalysis:-Quantity&lt;/b&gt; objects (actually, ?boolean is not very explicit).  For them, as explained above, you have to extract the magnitude by &lt;b&gt;evalf&lt;/b&gt;:&lt;/p&gt;
&lt;pre&gt;
if evalf(ScientificErrorAnalysis:-Quantity( 2.3, 0.1))&amp;lt;1 then 1 
else 0 end if;
                                  0
&lt;/pre&gt;</description>
      <guid>45245</guid>
      <pubDate>Mon, 08 Feb 2010 23:29:31 Z</pubDate>
      <itunes:author>jakubi</itunes:author>
      <author>jakubi</author>
    </item>
    <item>
      <title>simple example</title>
      <link>http://www.mapleprimes.com/questions/35820-Problem-With-Procedures?ref=Feed:MaplePrimes:Problem with procedures:Comments#answer45246</link>
      <itunes:summary>&lt;p&gt;jakubi,&lt;/p&gt;
&lt;p&gt;Could demonstrate a simple example, how to enable this, within a procedure.&lt;br /&gt;
&amp;nbsp;If you could be with the procedure dWdt or dWdTSEA better!!!!&lt;/p&gt;
&lt;p&gt;HerClau&lt;/p&gt;
&lt;p&gt;Gracias!!!!!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;jakubi,&lt;/p&gt;
&lt;p&gt;Could demonstrate a simple example, how to enable this, within a procedure.&lt;br /&gt;
&amp;nbsp;If you could be with the procedure dWdt or dWdTSEA better!!!!&lt;/p&gt;
&lt;p&gt;HerClau&lt;/p&gt;
&lt;p&gt;Gracias!!!!!!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <guid>45246</guid>
      <pubDate>Tue, 09 Feb 2010 00:51:49 Z</pubDate>
      <itunes:author>herclau</itunes:author>
      <author>herclau</author>
    </item>
  </channel>
</rss>