Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX 11i Version 1.5 Reference Volume 4, Section 3: Libraries > c

cpow(3M)

IA-64 only
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

cpow(), cpowf() — complex power functions

SYNOPSIS

#include <complex.h>

double complex cpow(double complex x, double complex y);

float complex cpowf(float complex x, float complex y);

DESCRIPTION

These functions are available only for IA-64.

cpow() returns xy. There is a branch cut for the first parameter along the negative real axis.

cpowf() is a float complex version of cpow(); it takes float complex arguments and returns a float complex result.

USAGE

To use these functions, compile with the default -Ae option. Make sure your program includes <complex.h>. Link in the math library by specifying -lm on the compiler or linker command line.

RETURN VALUES

cpow(x,y) returns the value calculated by cexp(y*clog(x)), and raises the exceptions from that calculation. (The intermediate calculations may be done to greater precision and range.)

ERRORS

No errors are defined.

STANDARDS CONFORMANCE

cpow(), cpowf(): ISO/IEC C99 (including Annex G, IEC 60559-compatible complex arithmetic)

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2001 Hewlett-Packard Development Company, L.P.