[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in the complex no header file of the gsl_complex.h .
From: |
Chetan |
Subject: |
Bug in the complex no header file of the gsl_complex.h . |
Date: |
Thu, 13 May 2021 12:20:58 +0530 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
error: expected identifier or ‘(’ before ‘do’
95 | #define GSL_SET_COMPLEX(zp,x,y) do {(zp)->dat[0]=(x);
(zp)->dat[1]=(y);} while(0)
here is the piece of code where i was trying to use the library.
gsl_complex z;
gsl_complex GSL_SET_COMPLEX(&z,5.7,8.0);
printf("output %f",gsl_complex_arg(z));
Thank you
- Bug in the complex no header file of the gsl_complex.h .,
Chetan <=