[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in the complex no header file of the gsl_complex.h .
From: |
Patrick Alken |
Subject: |
Re: Bug in the complex no header file of the gsl_complex.h . |
Date: |
Thu, 13 May 2021 08:20:07 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
Try this instead:
gsl_complex z;
GSL_SET_COMPLEX(&z,5.7,8.0);
printf("output %f",gsl_complex_arg(z));
On 5/13/21 12:50 AM, Chetan wrote:
> 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
>