Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Cosine Implementation in C. Parent comment
double cos2(double x, int n) {
double numerator = 1.0; double denominator = 1.0; double pi = 3.14159265358979323846; int i; for (i = 1; i <= n; ++i) { numerator *= pow((x - n * pi / 2.0), 2); denominator *= pow((n * pi / 2.0), 2); } return numerator / denominator;
(Edit for format)
There are no comments on this comment yet.
double cos2(double x, int n) {
}(Edit for format)