mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-10 14:05:17 +08:00
* feat: added math/area.cpp * feat: added surface area of sphere, cube and cylinder * docs: modified @brief * feat: changed to template functions * test: added 2 test cases for square_area() * test: added 3rd test case * [test/docs] added more test cases and docs for them * docs: added @details * updating DIRECTORY.md * fix: changed from math.h to cmath Co-authored-by: David Leal <halfpacho@gmail.com> * feat: added algorithms to the math namespace Co-authored-by: David Leal <halfpacho@gmail.com> * fix: call functions from the math namespace for testing * fix: style indentation Co-authored-by: David Leal <halfpacho@gmail.com> * fix: style indentation Co-authored-by: David Leal <halfpacho@gmail.com> * feat: uses uint16_t instead of int for testing * docs: added comments for testing variables * fix: style guide Co-authored-by: David Leal <halfpacho@gmail.com> Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: David Leal <halfpacho@gmail.com>
9.2 KiB
9.2 KiB