Commit Graph

62 Commits

Author SHA1 Message Date
akhil marsonya
29e1074af9 Merge pull request #565 from IlyaIskra/patch-1
Correct algorithm definition  | ArmstrongNumber
2021-02-09 21:58:56 +05:30
EliteDaMyth
fdda80fc6b Fix grammar. 2021-02-05 17:59:38 +05:30
IlyaIskra
6a35362160 Correct algorithm definition | ArmstrongNumber 2021-02-05 10:33:12 +03:00
marsonya
c8ab618d00 Merge pull request #477 from Eji4h/master
Refactor Maths/Factorial for more minimal side effects.
2021-01-22 15:44:51 +05:30
Ejiah
285d2b08da Move the (num > 0) if condition to the end 2021-01-22 12:44:52 +07:00
Omkarnath Parida
901432ef49 Merge pull request #512 from JakeGerber/master
Added decimalIsolate function.
2020-12-22 11:13:05 +05:30
Omkarnath Parida
ef78fce1e2 Update decimalIsolate.js
The previous code was not efficient enough to give the accurate output.
2020-12-22 11:08:56 +05:30
rahul1995
8b1e32eb77 Add extra testcases for Fibonacci and improve code (#544)
* Add extra testcases for Fibonacci and improve code
* Fix typos in Fibonacci.js
2020-12-20 22:24:02 +05:30
Cristian Baciu
2ebe65baff Add Pow.js (#498)
* Add pow.js

* Add tests for Pow.js
2020-12-20 19:08:37 +05:30
sandyboypraper
c931b4675f some changes in coding style to make it standerize 2020-12-14 12:38:08 +05:30
sandyboypraper
6d91a1eede some changes in coding style to make it standerize 2020-12-14 12:30:03 +05:30
sandyboypraper
4746d0c90e some changes in coding style to make it standerize 2020-12-14 12:26:08 +05:30
sandyboypraper
ee749bde47 Added EulersTotientFunction function to the Maths Folder 2020-12-14 00:33:55 +05:30
Shreyas Sable
74f9bfb8a8 Implementing Permutations and Combinations (#481)
* calculates the number of permutations and combinations

* calculates the number of permutations and combinations

* calculates the number of permutations and combinations

* updating DIRECTORY.md

* calculates the number of permutations and combinations

* calculates the number of permutations and combinations

* fixed a typo

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-11-07 21:34:06 +05:30
Tapajyoti Bose
7a050aba5b Merge pull request #531 from rahul1995/fib-matrix-expo
Add O(log n) algorithm using matrix exponentiation to find n-th fibonacci
2020-11-01 08:55:10 +05:30
Arwy Syahputra Siregar
eab57b880a add binary convert (#521)
* add  binary convert
2020-10-31 20:22:50 +05:30
Omkarnath Parida
19295099d0 Merge pull request #505 from theepag/WhileLoopFactorial
Added while loop factorial
2020-10-31 12:47:56 +05:30
vinayak
4e680d7087 Update WhileLoopFactorial.js 2020-10-31 12:34:54 +05:30
Fergus McDonald
9c9640c1c3 Added Softmax to Maths folder (#516) 2020-10-31 12:20:29 +05:30
Rahul Jain
feaca3b27a Make Fibonacci.js file comply with standard JS rules 2020-10-30 16:08:16 +05:30
Rahul Jain
78a05970e2 Add O(log n) algorithm using matrix exponentiation to find n-th fibonacci 2020-10-30 16:02:15 +05:30
Rahul Jain
5e6d813b6f Update Binary Exponentiation algorithm file to comply with Javascript standard rules 2020-10-29 21:54:07 +05:30
Rahul Jain
c7fe697ca4 Add explanation for the Binary Exponentiation 2020-10-29 21:42:10 +05:30
Rahul Jain
ae3bd72ca8 Add Iterative Binary Exponentiation 2020-10-29 21:36:31 +05:30
Jake Gerber
ac4bd9f552 Update decimalIsolate.js 2020-10-24 01:45:59 -07:00
Jake Gerber
5f526eaef5 Update decimalIsolate.js 2020-10-24 01:39:52 -07:00
Jake Gerber
b8b98a5972 Added decimalIsolate file. 2020-10-24 01:37:27 -07:00
theepag
b400290186 Added while loop factorial 2020-10-20 23:07:14 +05:30
Fergus McDonald
86d5a23674 move math-area tests to test folder 2020-10-18 19:22:19 -07:00
Yosapol Jitrak
57e20c551c Fix Block must not be padded by blank lines. 2020-10-16 16:38:34 +07:00
Yosapol Jitrak
301a8dd19a Fix Extra semicolon and Block must not be padded by blank lines. 2020-10-16 16:35:42 +07:00
Yosapol Jitrak
e0883facdb Refactor Maths/Factorial for more minimal side effects. 2020-10-16 16:31:40 +07:00
Pete Looney
45b35f4a18 fixed trailing whitespace 2020-10-12 17:23:23 -05:00
Pete Looney
36cdfed2d8 added more comments 2020-10-12 17:17:58 -05:00
Pete Looney
9301b11059 added Wikipedia URL 2020-10-12 17:06:56 -05:00
Pete Looney
865549cd49 added MatrixMultiplication.js 2020-10-12 17:01:31 -05:00
Pete Looney
cc1f50ae7e Changed to UpperCamelCase 2020-10-12 16:59:00 -05:00
Pete Looney
b4e3f2e6d6 finishing touches on matrixMult.js 2020-10-12 16:54:50 -05:00
Pete Looney
3d5927acbf added matrixMult.js 2020-10-12 16:35:28 -05:00
Jake Gerber
c3da503a96 Added isOdd function. (#454)
* Added isOdd function.


Co-authored-by: vinayak <itssvinayak@gmail.com>
2020-10-12 13:17:08 +05:30
vinayak
564425ade7 Update isOdd.js 2020-10-12 13:15:57 +05:30
Ephraim Atta-Duncan
e112434dee Add tests to Math (#423)
* Add prettier config

* test: add test to check for absolute function

* chore: es5 to es6

* test: add test to check mean function

* test: add test for sum of digit

* test: add test for factorial

* test: add test for fibonnaci

* test: add test for find HCF

* test: add test for lcm

* test: add gridget test

* test: add test for mean square error

* test: add test for modular binary exponentiation

* test: add tests for palindrome

* test: add test for pascals triangle

* test: add tests for polynomial

* test: add tests for prime check

* test: add tests for reverse polish notation

* test: add tests for sieve of eratosthenes

* test: add tests for pi estimation monte carlo method

* chore: move tests to test folder

* chore: fix standardjs errors
2020-10-12 01:17:49 +05:30
Ephraim Atta-Duncan
cd6ec65e54 Add Algorithms to Math with tests (#429)
* chore: add area and area test

* chore: add armstrong number

* chore: add factors

* chore: add perfect cube

* chore: add perfect square

* chore: add perfect number

* chore: add number of digits

* chore: fix according to standardjs

* chore: remove conflicting files
2020-10-12 01:09:20 +05:30
Jake Gerber
18a28e567e Update isOdd.js 2020-10-10 14:07:16 -07:00
Jake Gerber
008162228e Add and fixed isOdd.js 2020-10-10 14:02:35 -07:00
Jake Gerber
4971a29839 Added isOdd function. 2020-10-10 13:37:40 -07:00
Carlos Carvalho
0ad515a966 Added new area calculators (#428) 2020-10-10 23:22:01 +05:30
Japoncio3k
968c20eba7 Added isDivisble.js (#437)
* Added isDivisble.js

* isDivisible.js is now on StandardJS style

* isDivisible now have examples
2020-10-09 23:11:58 +05:30
Stas
c02fc1f6f6 Added Mean Square Error (#417)
* Added Mean Square Error

* Update MeanSquareError.js

Co-authored-by: vinayak <itssvinayak@gmail.com>
2020-10-05 23:48:59 +05:30
Divyajyoti Ukirde
3e8deafd97 feat: added Polynomial in Maths (#397) 2020-10-04 23:05:52 +05:30