cmplxdbl
Returns a double-precision complex number for two real inputs. The PV-WAVE API for this routine is the
DCOMPLEX Function.
Prototype
DCOMPLEX cmplxdbl( double r, double i )
Parameters
r — (Input) The real part of the complex number.
i — (Input) The imaginary part of the complex number.
Return value
The double-precision complex number (r,i).
Example
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "alib.h"
void main() {
DCOMPLEX z;
alibinit( NULL, NULL, NULL, NULL );
z = cmplxdbl( 1, 2 );
alibPrintArrayz( 1, 1, 1, 1, &z, NULL );
}
Output:
( 1.0e+00 2.0e+00 )
Version 2017.0
Copyright © 2017, Rogue Wave Software, Inc. All Rights Reserved.