recursive_gcd: Standard functions implemented by recursion

View source: R/9_basic_recursive_functions.R

recursive_gcdR Documentation

Standard functions implemented by recursion

Description

Standard functions implemented by recursion

Usage

recursive_gcd(a, b)

recursive_lcm(a, b)

Arguments

a

A positive integer vector of length 1.

b

A positive integer vector of length 1.

Details

Functions leveraging recursion.

Examples

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)

gmcmacran/functional_playground documentation built on Aug. 5, 2024, 7:40 a.m.