Skip to content

Instantly share code, notes, and snippets.

View tuix's full-sized avatar

Mohsen Nosratinia tuix

  • Viking Analytics AB
  • Stockholm, Sweden
View GitHub Profile
@sinclairtarget
sinclairtarget / bernoulli.c
Created August 17, 2018 20:22
Lovelace's Note G Program in C
#include <stdio.h>
/*
* Calculates what Ada Lovelace labeled "B7", which today we would call the 8th
* Bernoulli number.
*/
int main(int argc, char* argv[])
{
// ------------------------------------------------------------------------
// Data