<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>RE: [Python-Dev] calculator module</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Gareth McCaughan wrote:</FONT>
</P>

<P><FONT SIZE=2>#- Decimal doesn't currently support the functions (cos, exp, log, ...)</FONT>
<BR><FONT SIZE=2>#- currently in the &quot;math&quot; module. Making Raymond's proposal work</FONT>
<BR><FONT SIZE=2>#- with Decimal objects would require implementing all those things</FONT>
<BR><FONT SIZE=2>#- for Decimals. That's appreciably more work than implementing just</FONT>
<BR><FONT SIZE=2>#- the new functions for doubles.</FONT>
</P>

<P><FONT SIZE=2>You're right. And the specification of Cowlishaw doesn't tell us how to make a cos of a Decimal, for example.</FONT>
</P>
<BR>

<P><FONT SIZE=2>#- Further, I'd argue that since Decimal can work with numbers</FONT>
<BR><FONT SIZE=2>#- of arbitrary precision, an implementation of (say) exp that</FONT>
<BR><FONT SIZE=2>#- works on Decimals ought to work with something like full</FONT>
<BR><FONT SIZE=2>#- precision, unless it's *only* intended for casual use. Writing</FONT>
<BR><FONT SIZE=2>#- implementations of all these things would be a considerable</FONT>
<BR><FONT SIZE=2>#- amount of work.</FONT>
</P>

<P><FONT SIZE=2>You always can change the context precision before the operation. But it's not very normal to the user that comes from using a &quot;hand calculator&quot;.</FONT></P>
<BR>

<P><FONT SIZE=2>#- To my mind, the loss isn't worth the gain.</FONT>
</P>

<P><FONT SIZE=2>I think that make the calculations with Decimal, *now* isn't worth it. </FONT>
</P>

<P><FONT SIZE=2>But when Decimal and the calculator will be implemented, we should reconsider this again.</FONT>
</P>

<P><FONT SIZE=2>.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Facundo</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>

<P><B><FONT SIZE=2>. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .</FONT></B></P>

<P><B><U><FONT SIZE=2>ADVERTENCIA&nbsp;</FONT></U> </B>
</P>

<P><B><FONT SIZE=2>La información contenida en este mensaje y cualquier archivo anexo al mismo, son para uso exclusivo del destinatario y pueden contener información confidencial o propietaria, cuya divulgación es sancionada por la ley. </FONT></B></P>

<P><B><FONT SIZE=2>Si Ud. No es uno de los destinatarios consignados o la persona responsable de hacer llegar este mensaje a los destinatarios consignados, no está autorizado a divulgar, copiar, distribuir o retener información (o parte de ella) contenida en este mensaje. Por favor notifíquenos respondiendo al remitente, borre el mensaje original y borre las copias (impresas o grabadas en cualquier medio magnético) que pueda haber realizado del mismo. </FONT></B></P>

<P><B><FONT SIZE=2>Todas las opiniones contenidas en este mail son propias del autor del mensaje y no necesariamente coinciden con las de Telefónica Comunicaciones Personales S.A. o alguna empresa asociada. </FONT></B></P>

<P><B><FONT SIZE=2>Los mensajes electrónicos pueden ser alterados, motivo por el cual Telefónica Comunicaciones Personales S.A. no aceptará ninguna obligación cualquiera sea el resultante de este mensaje. </FONT></B></P>

<P><B><FONT SIZE=2>Muchas Gracias.</FONT></B>
</P>

</BODY>
</HTML>