View source: R/9_basic_recursive_functions.R
recursive_gcd | R Documentation |
Standard functions implemented by recursion
recursive_gcd(a, b)
recursive_lcm(a, b)
a |
A positive integer vector of length 1. |
b |
A positive integer vector of length 1. |
Functions leveraging recursion.
library(functionalPlayground)
recursive_gcd(4L, 6L)
recursive_gcd(10L, 20L)
recursive_gcd(1L, 100L)
recursive_lcm(4L, 6L)
recursive_lcm(10L, 20L)
recursive_lcm(1L, 100L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.