From 2dacb46e3027e7119d590f796da4a15148dfdb44 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Fri, 23 Jun 2023 20:15:13 +0000 Subject: [PATCH] Documentation for e3f0551f981df176d18e2667faf9cbe8f602b32d --- ...ith__same__number__of__set__bits_8cpp.html | 52 ++--- d5/df6/check__amicable__pair_8cpp.html | 184 ++++++------------ d5/df6/check__amicable__pair_8cpp.js | 6 +- ...83bb8ccf42aaf7375a83e91490eda1e_cgraph.map | 9 + ...83bb8ccf42aaf7375a83e91490eda1e_cgraph.md5 | 1 + ...83bb8ccf42aaf7375a83e91490eda1e_cgraph.svg | 100 ++++++++++ ...8ccf42aaf7375a83e91490eda1e_cgraph_org.svg | 75 +++++++ ...1a3968e7947464bee7714f6d43b7002_cgraph.map | 7 - ...1a3968e7947464bee7714f6d43b7002_cgraph.md5 | 1 - ...1a3968e7947464bee7714f6d43b7002_cgraph.svg | 82 -------- ...68e7947464bee7714f6d43b7002_cgraph_org.svg | 57 ------ ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.map | 18 +- ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.md5 | 2 +- ...66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg | 80 ++++---- ...b31b5ad750f1fe042a706a4e3d4_cgraph_org.svg | 80 ++++---- ...eb67e204ec7de02ad152c11df4d1e01_cgraph.map | 5 - ...eb67e204ec7de02ad152c11df4d1e01_cgraph.md5 | 1 - ...e204ec7de02ad152c11df4d1e01_cgraph_org.svg | 39 ---- d7/d81/namespacebit__manipulation.html | 63 +++--- db/d0c/check__amicable__pair_8cpp__incl.map | 2 +- db/d0c/check__amicable__pair_8cpp__incl.md5 | 2 +- db/d0c/check__amicable__pair_8cpp__incl.svg | 2 +- .../check__amicable__pair_8cpp__incl_org.svg | 2 +- dd/d47/namespacemath.html | 101 ++++++++++ dd/d47/namespacemath.js | 2 + ...e6eede206201db0d1dbb618fa969bec_cgraph.map | 5 + ...e6eede206201db0d1dbb618fa969bec_cgraph.md5 | 1 + ...e6eede206201db0d1dbb618fa969bec_cgraph.svg | 24 +-- ...de206201db0d1dbb618fa969bec_cgraph_org.svg | 39 ++++ dir_296d53ceaeaa7e099814a6def439fe8a.html | 2 +- files.html | 2 +- globals_a.html | 1 - globals_func_a.html | 1 - globals_func_s.html | 1 - globals_func_t.html | 4 +- globals_s.html | 1 - globals_t.html | 4 +- namespacemembers.html | 2 + namespacemembers_func.html | 2 + navtreedata.js | 6 +- navtreeindex0.js | 46 ++--- navtreeindex1.js | 24 +-- navtreeindex10.js | 4 +- navtreeindex11.js | 68 +++---- navtreeindex12.js | 48 ++--- navtreeindex13.js | 10 +- navtreeindex14.js | 2 + navtreeindex2.js | 14 +- navtreeindex3.js | 4 +- navtreeindex4.js | 6 +- navtreeindex5.js | 22 +-- navtreeindex6.js | 34 ++-- navtreeindex7.js | 36 ++-- navtreeindex8.js | 14 +- navtreeindex9.js | 14 +- search/all_14.js | 2 +- search/all_15.js | 8 +- search/all_2.js | 2 +- search/functions_1.js | 2 +- search/functions_13.js | 2 +- search/functions_14.js | 12 +- 61 files changed, 757 insertions(+), 685 deletions(-) create mode 100644 d5/df6/check__amicable__pair_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph.map create mode 100644 d5/df6/check__amicable__pair_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph.md5 create mode 100644 d5/df6/check__amicable__pair_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph.svg create mode 100644 d5/df6/check__amicable__pair_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph_org.svg delete mode 100644 d5/df6/check__amicable__pair_8cpp_ae1a3968e7947464bee7714f6d43b7002_cgraph.map delete mode 100644 d5/df6/check__amicable__pair_8cpp_ae1a3968e7947464bee7714f6d43b7002_cgraph.md5 delete mode 100644 d5/df6/check__amicable__pair_8cpp_ae1a3968e7947464bee7714f6d43b7002_cgraph.svg delete mode 100644 d5/df6/check__amicable__pair_8cpp_ae1a3968e7947464bee7714f6d43b7002_cgraph_org.svg delete mode 100644 d5/df6/check__amicable__pair_8cpp_afeb67e204ec7de02ad152c11df4d1e01_cgraph.map delete mode 100644 d5/df6/check__amicable__pair_8cpp_afeb67e204ec7de02ad152c11df4d1e01_cgraph.md5 delete mode 100644 d5/df6/check__amicable__pair_8cpp_afeb67e204ec7de02ad152c11df4d1e01_cgraph_org.svg create mode 100644 dd/d47/namespacemath_a8e6eede206201db0d1dbb618fa969bec_cgraph.map create mode 100644 dd/d47/namespacemath_a8e6eede206201db0d1dbb618fa969bec_cgraph.md5 rename d5/df6/check__amicable__pair_8cpp_afeb67e204ec7de02ad152c11df4d1e01_cgraph.svg => dd/d47/namespacemath_a8e6eede206201db0d1dbb618fa969bec_cgraph.svg (57%) create mode 100644 dd/d47/namespacemath_a8e6eede206201db0d1dbb618fa969bec_cgraph_org.svg diff --git a/d5/d1e/next__higher__number__with__same__number__of__set__bits_8cpp.html b/d5/d1e/next__higher__number__with__same__number__of__set__bits_8cpp.html index f57fecb10..b60a65feb 100644 --- a/d5/d1e/next__higher__number__with__same__number__of__set__bits_8cpp.html +++ b/d5/d1e/next__higher__number__with__same__number__of__set__bits_8cpp.html @@ -155,11 +155,11 @@ Functions
Main function.
Self-test implementations.
A C++ Program to check whether a pair of number is amicable pair or not. +
A C++ Program to check whether a pair of numbers is an amicable pair or not. More...
#include <cassert>#include <iostream>+Namespaces | |
| namespace | math |
| for IO operations | |
Functions | |
| int | sum_of_divisor (int num) |
| bool | are_amicable (int x, int y) |
| void | test () |
| int | math::sum_of_divisor (int num) |
| Function to calculate the sum of all the proper divisor of an integer. | |
| bool | math::are_amicable (int x, int y) |
| Function to check whether the pair is amicable or not. | |
| static void | tests () |
| Self-test implementations. | |
| int | main () |
| Main function. | |
A C++ Program to check whether a pair of number is amicable pair or not.
-Amicable Pair are two positive integers such that sum of the proper divisor of each number is equal to the other number.
+A C++ Program to check whether a pair of numbers is an amicable pair or not.
+An Amicable Pair is two positive integers such that the sum of the proper divisor for each number is equal to the other number.
+| bool are_amicable | -( | -int | -x, | -
| - | - | int | -y | -
| - | ) | -- |
Function to check whether the pair is amicable or not.
| x | First number. |
| y | Second number. |
true if the pair is amicable false if the pair is not amicable Main Function
-Main function.
+
-
-
-
-Function to calculate the sum of all the proper divisor of an integer.
21 {
- 22 // Variable to store the sum of all proper divisors.
-
- 24 // Below loop condition helps to reduce Time complexity by a factor of
- 25 // square root of the number.
-
- 27 // Check 'div' is divisor of 'num'.
- 28 if (num % div == 0) {
- 29 // If both divisor are same, add once to 'sum'
- 30 if (div == (num / div)) {
-
- 32 } else {
- 33 // If both divisor are not the same, add both to 'sum'.
-
- 35 }
- 36 }
- 37 }
-
- 39}
-T div(T... args) ◆ test()- -
-
-
|
+ +static | +
Function for testing the is_amicable() with all the test cases.
-Self-test implementations.
+