Commit Graph

4 Commits

Author SHA1 Message Date
Niranjan 144442afba
[feat/docs]: improve the Fibonacci algorithm (#1232)
* Improve the documentation of factorial.c

* Improve the documentation of fibonacci.c

* Update starting terms of fibonacci as 0 and 1

* Update math/fibonacci.c

Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>

* docs: Documenting the code

* test: Add test

* fix: fix the test expression

Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>

* feat: Restrict non-integer inputs

* fix: Change atoi() to sscanf()

* fix: Change atoi() to sscanf()

* fix: scanf() to getInput()

* fix: while, continue and break

Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>

* fix: Increase buffer size

* fix: Doesn't accept lengthy characters

* fix: Accepts empty characters

* fix: fibonacci.c

Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>

* feat: Add wikipedia link

* feat: Add author

Co-authored-by: David Leal <halfpacho@gmail.com>

* feat: Record time duration of function execution

* chore: apply suggestions from code review

Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>

* chore: apply suggestions from code review

Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>

---------

Co-authored-by: Sharon "Cass" Cassidy <122662061+CascadingCascade@users.noreply.github.com>
Co-authored-by: David Leal <halfpacho@gmail.com>
Co-authored-by: Sharon "Cass" Cassidy <monadicdiffusive@proton.me>
2023-04-20 13:59:14 -06:00
dsmurrow 0a5f5c61f7
feat: added extended Euclidean algorithm (#1238)
* chore: made it so math directory gets built

* feat: added extended Euclidean algorithm

* docs: added details qualifier

Co-authored-by: David Leal <halfpacho@gmail.com>

* docs: added param qualifiers to functions that needed them

* docs: added details qualifier

Co-authored-by: David Leal <halfpacho@gmail.com>

* docs: small cleanup

---------

Co-authored-by: David Leal <halfpacho@gmail.com>
2023-04-13 15:33:10 -06:00
dsmurrow 581dd22ae0
chore: add `math` to CMake lists (#1236) 2023-03-24 13:27:10 -06:00
Defective Detective 56b72da9fb
chore: move various `misc` folder... (#1177)
...algorithms to the `math` folder.

Co-authored-by: David Leal <halfpacho@gmail.com>
2022-12-22 11:26:50 -06:00