Skip to content

Commit 32db89a

Browse files
authored
New changes (#22)
* update Fibonacci.fs added a function to get the nth Fibonacci number. * update readme.md * update readme.md * create new file create algorithm to calculate greatest common divisor. * Rename PerfectNumbers.fs to Perfect_Numbers.fs
1 parent 04c30a1 commit 32db89a

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

Algorithms/Math/Fibonacci.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Algorithms.Math
1+
namespace Algorithms.Math
22

33
module Fibonacci =
44
let rec PrintSerie (one: int) (two: int) =
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Algorithms.Math
2+
3+
module GreatestCommonDivisor =
4+
let rec gcd (m: int) (n: int): int =
5+
match m,n with
6+
| 0,n -> n
7+
| m,n -> gcd (n % m) m
File renamed without changes.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This repository contains algorithms and data structures implemented in F# for ed
1111
+ [Abs Minimum](https://github.com/TheAlgorithms/F-Sharp/blob/main/Algorithms/Math/AbsMin.fs)
1212
+ [Factorial](https://github.com/TheAlgorithms/F-Sharp/blob/main/Algorithms/Math/Factorial.fs)
1313
+ [Fibonacci](https://github.com/TheAlgorithms/F-Sharp/blob/main/Algorithms/Math/Fibonacci.fs)
14+
+ [Greatest Common Divisor](https://github.com/TheAlgorithms/F-Sharp/blob/main/Algorithms/Math/Greatest_Common_Divisor.fs)
1415
+ [Perfect Numbers](https://github.com/TheAlgorithms/F-Sharp/blob/main/Algorithms/Math/Perfect_Numbers.fs)
1516
+ [Power](https://github.com/TheAlgorithms/F-Sharp/blob/main/Algorithms/Math/Power.fs)
1617
+ [Search](https://github.com/TheAlgorithms/F-Sharp/tree/main/Algorithms/Search)

0 commit comments

Comments
 (0)