UPGRADE YOUR BROWSER
We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!
07-25-2018 09:38 PM
Hi,
I have used erfc() in my kerneland I am using SW_Simulation.
for (int i = 0 ; i < n_elements ; i += BUFFER_SIZE)
{printf("%f\n", erfc(0.35));}
the program runs but the result is just like the bellow lines. the first 0.0 output and a lot of Nan out put. What should I do? could you please help me?
0.000000
-nan
-nan
-nan
-nan
08-14-2018 08:19 PM - edited 08-19-2018 07:45 PM
Hi, @ramin_rasoulinezhad ,
Have you tried SDx 2018.2? I don't see the issue in 2018.2 with erfc and erf.
07-25-2018 10:19 PM
Another try:
for (int k=+100;k>-100;k--){
ali = erfc(k * 0.01);
printf("&&%g\n", ali);
}
output:
&&-5.48613e+303
&&-5.48612e+303
&&-5.48612e+303
&&-5.48612e+303
&&-5.48612e+303
.... (just like the last one)
07-27-2018 01:22 AM
08-02-2018 05:35 PM
I am using 2017.2. Is it OK?
In this version, all the mathematic functions work except erf and erfc. Which version do you recommend? I am downloading 2018.2 now
Regards,
Ramin
08-02-2018 06:27 PM
08-14-2018 08:19 PM - edited 08-19-2018 07:45 PM
Hi, @ramin_rasoulinezhad ,
Have you tried SDx 2018.2? I don't see the issue in 2018.2 with erfc and erf.