Experience

Max
January 14, 2021

C++ Code

#include <Rcpp.h>

// [[Rcpp::export]]
int fibonacci(const int x) {
    if (x == 0 || x == 1) return(x);
    return (fibonacci(x - 1)) + fibonacci(x - 2);
}

Deployed

fibonacci(10L)
[1] 55
fibonacci(20L)
[1] 6765

Python code

#Example Python code:
print("Hello, world!")
Hello, world!
x = 2
print(x)
2

Corrections

If you see mistakes or want to suggest changes, please create an issue on the source repository.

Reuse

Text and figures are licensed under Creative Commons Attribution CC BY-SA 4.0. Source code is available at https://github.com/CapitainData/blog-experiment, unless otherwise noted. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".