[CLN-list] Types in cl_R

Isidro Cachadiña Gutiérrez icacha at unex.es
Tue Nov 16 21:25:03 CET 2004


Hi All:

I am using cln with real numbers. I have a problem in the expt function...

Wen I have, for example, 

#include <cln(/real.h>

...

cl_R x,y,z;

z=expt(x,y);

I have problems with the prototypes defined in <real.h> that causes that expt 
cannot be used in this way.

I also can define this function as:

cln::cl_R expt(cln::cl_R x, cln::cl_R y)
{
  return exp(x*ln(y));
} 

And It works fine,  but I think that It have to be defined somewhere in the 
library. 

Cheers.
-- 
***************************************************************************
*                    Dr. Isidro Cachadiña Gutiérrez                       * 
*                        Departamento de Física                           * 
*                         Facultad de Ciencias                            *
*                      Universidad de Extremadura                         *
*                        06071  Badajoz ( SPAIN )                         * 
*                         email: icacha at unex.es                           * 
*    Teléfono: +34 924 289 300 Ext. 6826     Fax: +34 924 289 651   *
***************************************************************************
* Usuario Linux: 8569         *
* Para clave pública GnuPG: http://onsager.unex.es/firma.pub.asc          *
***************************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.cebix.net/pipermail/cln-list/attachments/20041116/25513a27/attachment.pgp


More information about the CLN-list mailing list