Commit Graph

77 Commits

Author SHA1 Message Date
github-actions
434320ed45 Formatted with Google Java Formatter 2021-09-17 09:47:40 +00:00
Waleet
c497d13c9a
Added class that calculated Pi (#2324)
* added class PiNilakantha.java
which calculates Pi using Nilakanthas infinite series

* added link to explanation
partially fixes #2323
2021-09-17 17:46:52 +08:00
algobytewise
728723177e
Add Euler method (from master) (#2148)
* readded EulerMethod.java after sync

* add package
2021-04-24 11:54:34 +05:30
Seth
b4d104db23
Added algorithm for color contrast ratio. (#1794)
* Added algorithm for color contrast ratio.

* Added comment and example usage in main.

* Fixed calling method in main without creating object.

* Formatted with Google Java Formatter

* Add imports for ColorContrastRatio.java

* updating DIRECTORY.md

* Updated to follow repo conventions. Undid formatting of documents.

* Follow repository conventions.

* Formatted with Google Java Formatter

* Added test method with assetions.

* Formatted with Google Java Formatter

* Update Misc/ColorContrastRatio.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* updating DIRECTORY.md

* Correct javadocs and parameter names.

* Formatted with Google Java Formatter

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-02-27 22:16:25 +05:30
github-actions
ca2e20707f Formatted with Google Java Formatter 2021-02-26 19:22:37 +00:00
JohnKara
4264e0f045 Added Linear Convolution, FFT, Bluestein's FFT and Circular and Linear Convolution using FFT 2021-02-26 21:21:48 +02:00
github-actions
6ebb159327 Formatted with Google Java Formatter 2020-11-16 01:40:56 +00:00
Lakhan Nad
1b828269dc
Added Binary Exponentiation Fixes:#1943 (#1945)
* Added Binary Exponentiation Fixes:#1943

* tests added in Binary Exponentation #1945

* Assertion Added
2020-11-16 07:10:16 +05:30
github-actions
5d59a2e828 Formatted with Google Java Formatter 2020-10-24 10:23:28 +00:00
shellhub
4ab05480e2 * Added arithmetic series
* Fixed compare two double
* Fiexed documentation
2020-09-13 12:16:19 +08:00
=
5606a8de0a update Java/Maths/PrimeFactorization.java 2020-08-27 20:31:49 +08:00
shellhub
19176d9ede rename file 2020-08-26 21:40:48 +08:00
Du Yuanchao
94bb2088be
Update Maths/Armstrong.java 2020-08-26 00:12:00 +08:00
shellhub
6356db0b97 * rename file
* create strings directory
* fix docs
* add test
2020-08-26 00:05:11 +08:00
shellhub
c771089882 test using rand numbers 2020-08-23 12:40:30 +08:00
Du Yuanchao
d6947d0fbd
Merge pull request #1426 from shellhub/dev
Added AliquotSum and Median
2020-08-21 00:02:21 +08:00
shellhub
34869cb5cb optimization 2020-08-21 00:00:48 +08:00
shellhub
8c5ec652f6 * add AliquotSum
* add Median
2020-08-20 23:26:06 +08:00
gijsh21
bbe6f9410c
Apply suggestions from code review
Co-authored-by: Du Yuanchao <shellhub.me@gmail.com>
2020-08-20 15:25:10 +02:00
gijsh21
cccc898ba1
Create Mode.java
For finding the mode of an array of numbers
2020-08-20 11:18:36 +02:00
rabbit
94a65964d8 Update Average.java
1. add int type array
2. The equality of floating-point numbers should be judged by the absolute value of the difference less than a small number
2020-08-18 09:50:59 +08:00
rabbit
9486101fb6 Revert "Create FindAverage.java"
This reverts commit 5070a0bb28.
2020-08-18 09:41:32 +08:00
rabbit
5070a0bb28 Create FindAverage.java
add a findAverage java file in maths directory
2020-08-17 11:16:11 +08:00
Stepfen Shawn
ea43d70f3e
Merge pull request #1417 from rbshealy/master
Add PythagoreanTriple.java and Add assert statements
2020-08-16 23:22:54 +08:00
Ray S
9a31b960ff
Fix array initialization 2020-08-16 11:21:16 -04:00
Ray S
ae5536bddc
Fix array initialization 2020-08-16 11:20:38 -04:00
shellhub
b4839c2c07 Added SumOfDigits 2020-08-16 23:04:34 +08:00
Ray
16057164a6 Add assert statement 2020-08-16 10:46:39 -04:00
Ray
918189ec20 Add PythagoreanTriple.java 2020-08-16 10:32:10 -04:00
shellhub
1420e2d851 * add LucasSeries
* add PerfectCube
* PerfectSquare
2020-08-16 21:16:08 +08:00
shellhub
96345ad634 * factorial using using iteration
* add ceil() to maths
* add combinations() to maths
* add floor() to maths
2020-08-16 19:58:48 +08:00
shellhub
3e169010fe add average 2020-08-16 13:58:14 +08:00
shellhub
5e6c5a3861 Calculate area of various geometric shapes 2020-08-16 13:34:48 +08:00
shellhub
f2b50c0e6c duplicate with NumberOfDigits.java 2020-08-16 11:55:25 +08:00
shellhub
22e2e74bf8 add NumberOfDigits 2020-08-12 22:53:08 +08:00
shellhub
6079b4bc10 * reduce code
* add function overriding
* update test
2020-08-10 16:52:06 +08:00
Stepfen Shawn
de4b2be8af
Use public class 2020-07-31 11:44:09 +08:00
Utsav1999
7f944d93dd updated with Maths package 2020-07-26 21:36:19 +05:30
Utsav1999
da29549d67 updated with Maths package 2020-07-26 21:32:32 +05:30
Utsav1999
ce5ca17381 Update for zero and negative numbers 2020-07-26 01:31:34 +05:30
Utsav1999
e68334330e Added Count Digit program 2020-07-25 21:49:11 +05:30
lollerfirst
7179718df2
Update ParseInteger.java
Fixed error for empty string.
2020-06-09 08:40:46 +02:00
Maria Lungeanu
a5f42e293b Fixed Error:(6, 8) java: class algorithm is public, should be declared in a file named algorithm.java. Inside file PrimeFactorization, the name of public class was wrong. 2020-05-25 00:21:28 +03:00
Maria Lungeanu
63e5ce4c8f Fixed Error:(6, 8) java: class algorithm is public, should be declared in a file named algorithm.java. Inside file PrimeFactorization, the name of public class was wrong. 2020-05-14 19:36:06 +03:00
Stepfen Shawn
bcf808a238
Update VampireNumber.java 2020-05-12 17:01:38 -05:00
Stepfen Shawn
cce363d6ef
Merge pull request #1251 from wendelllsc/patch-1
Using Try/catch and recursion
2020-05-11 22:53:24 +08:00
Stepfen Shawn
4deae1ec3b
Merge pull request #1301 from BenSchokoRiegel/master
Implementing AmicableNumber and VampireNumbers in the Math class
2020-05-11 11:20:18 +08:00
Vikrant khedkar
f6d67253e3
Added indentation in the "main" function statement block 2020-05-08 10:38:05 +05:30
Vikrant Khedkar
f44f2c176b added comment in front of main method 2020-05-07 20:28:31 +05:30
Vikrant Khedkar
1c062e2c7a added scanner in factorail program 2020-05-07 19:30:58 +05:30