[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #57978] Incorrect result from cosine function with inf input
From: |
Jackson Vanover |
Subject: |
[bug #57978] Incorrect result from cosine function with inf input |
Date: |
Sat, 28 Mar 2020 13:05:00 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0 |
Follow-up Comment #1, bug #57978 (project gsl):
Behavior also observed in gsl_sf_sin_pi
#include <gsl/gsl_sf.h>
#include <stdio.h>
#include <gsl/gsl_math.h>
int main (void){
double out;
out = gsl_sf_sin_pi(GSL_POSINF);
printf("%f\n", out); // prints zero
return 0;
}
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57978>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/