Krishna Vedala
f55ab50cf2
Merge commit upstream/master into merge_upstream
...
Signed-off-by: Krishna Vedala <7001608+kvedala@users.noreply.github.com >
2020-06-14 10:17:02 -04:00
Omkar Langhe
026557115c
Adding algorithm to check if number is prime or not. ( #834 )
...
* Optimized algorithm to check if number is prime or not.
* logic to check if given number is prime or not.
* logic to check if given number is prime or not.
* logic to check if given number is prime or not.
* logic to check if given number is prime or not.
* Included appropriate comments as per standards.
* variable name renamed to num
* added @file and @brief in comment. Also added template and variable name changed from is_prime to result
* added @file and @brief in comment. Also added template and variable name changed from is_prime to result
* added template parameter T type in loop
2020-06-13 21:15:37 +05:30
Taj
1b5dee74c0
feat: Added a function for finding the least common multiple ( #840 )
...
* feat: Added a function for finding the least common multiple
* feat: Miller-Rabin Primality Test (probabilistic)
* Added test assertions
* Mistakenly worked on a different branch
* Doxygen comments
* Comments changed
2020-06-13 04:17:32 +05:30
Krishna Vedala
43362d3b50
add author name
2020-06-05 20:26:34 -04:00
github-actions
4fe430d75f
formatting source-code for fd69530515
2020-06-01 03:10:34 +00:00
Krishna Vedala
1125c85b3f
add namespace - statistics
2020-05-31 23:00:49 -04:00
github-actions
227c455792
formatting source-code for a850308fba
2020-05-30 17:16:07 +00:00
Krishna Vedala
a850308fba
Merge branch 'master' into compute_realtime_stats
2020-05-30 13:15:06 -04:00
Krishna Vedala
72f53da5a9
added test case
2020-05-30 11:00:08 -04:00
Krishna Vedala
b596b7e42d
added comments to the code
2020-05-30 09:35:27 -04:00
github-actions
8a2de9842b
formatting source-code for 153fb7b8a5
2020-05-30 04:02:09 +00:00
github-actions
7ad1f171c1
formatting source-code for d7af6fdc8c
2020-05-29 23:26:30 +00:00
Krishna Vedala
8036cf033f
cpplint correction for header guard style
2020-05-29 09:44:08 -04:00
Krishna Vedala
76278a76c8
Merge branch 'document/math' into document/temp
...
* document/math:
replace printf & scanf with std::cout and std::cin
documented factorial
2020-05-28 16:50:13 -04:00
Krishna Vedala
c559ebcedb
replace printf & scanf with std::cout and std::cin
2020-05-28 16:41:07 -04:00
Krishna Vedala
e52da1db6e
documented factorial
2020-05-28 16:40:08 -04:00
Krishna Vedala
9ef8100a52
added see also reference to fibonacci
2020-05-28 16:37:03 -04:00
Krishna Vedala
e12a5d4b5d
remove un-necessary typecast & use uint64_t
2020-05-28 15:59:28 -04:00
Krishna Vedala
2216628678
update math fibonacci see-also links
2020-05-28 15:19:27 -04:00
Krishna Vedala
ea8aaf963d
move string fibonacci to math folder
2020-05-28 15:18:48 -04:00
Krishna Vedala
e480c049be
mode math algorithms to math folder
2020-05-27 19:00:20 -04:00
Krishna Vedala
a53ba4b856
document fibonacci fast & link to fibonacci numbers
2020-05-27 18:58:21 -04:00
Krishna Vedala
0a58f8f08f
include see-also for all gcd algos
2020-05-27 18:55:09 -04:00
Krishna Vedala
21c963c2f5
move the gcd_of_n_numbers to math folder along with all other GCD algorithms
2020-05-27 18:52:07 -04:00
Krishna Vedala
6dfdfa6662
fibonacci documentation
2020-05-27 17:58:17 -04:00
Krishna Vedala
27cea79fa3
document square-root that uses bisection method
2020-05-27 16:58:30 -04:00
Krishna Vedala
6cd589a752
math readme title
2020-05-27 16:47:32 -04:00
Krishna Vedala
ea3f8bbf29
documentation and bug fixes
2020-05-27 16:45:33 -04:00
Krishna Vedala
093b993cc7
fix cpplint
2020-05-27 16:44:58 -04:00
Krishna Vedala
9154d5a25d
docs for large number power
2020-05-27 16:22:22 -04:00
Krishna Vedala
f432c0f584
documetnation for positive divisors
2020-05-27 16:22:10 -04:00
Krishna Vedala
6173a6a701
documentation for Little Fermat's Thm
2020-05-27 16:09:50 -04:00
Krishna Vedala
49fe1b11ef
document fibonacci program
2020-05-27 15:42:23 -04:00
Krishna Vedala
e31ee6e833
better document GCD programs
2020-05-27 15:42:12 -04:00
Krishna Vedala
a436cd7a1b
improve documentation for fast_power
2020-05-27 15:14:39 -04:00
Krishna Vedala
d262065492
use template based functions
2020-05-27 15:14:30 -04:00
Krishna Vedala
757970dbae
documentation for extended euclid
2020-05-27 15:06:46 -04:00
Krishna Vedala
691cbdb1f5
fix code for generic types
2020-05-27 15:06:36 -04:00
Krishna Vedala
4944d4c8b1
documentation for eulers_totient_function.cpp
2020-05-27 14:07:18 -04:00
Krishna Vedala
d723604e01
documentation update for double_factorial
2020-05-27 14:07:05 -04:00
Krishna Vedala
50070774dd
fix documentation for double_factorial
2020-05-27 12:55:03 -04:00
Krishna Vedala
44f68e9a2e
bug fix - no function return and invalid for loop termination check
2020-05-27 12:54:42 -04:00
Krishna Vedala
4134c16f42
documentation for double_factorial
2020-05-27 09:21:54 -04:00
Krishna Vedala
334eb3df59
documetnation for binary_exponent.cpp
2020-05-27 09:13:21 -04:00
Krishna Vedala
139964d325
improved documentation
2020-05-26 09:05:44 -04:00
Krishna Vedala
0ad756f860
rand_r is non-portable and obsolete
2020-05-26 09:05:29 -04:00
Krishna Vedala
9c0025aa3d
added cmake to math, others and compu_stats
2020-05-25 23:42:37 -04:00
Krishna Vedala
82dab7515c
filenames and namespace fixes
2020-05-25 23:22:26 -04:00
Krishna Vedala
baea3b07c1
major corrections in the files - bad CPPLINT and non-compilable codes
2020-05-25 22:56:38 -04:00
Krishna Vedala
b36322c629
file rename to standards
...
(cherry picked from commit 412d3ff1a2 )
2020-05-25 22:53:10 -04:00