-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa767e1
commit 2dd66ad
Showing
12 changed files
with
121 additions
and
71 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
packages/java/.idea/sonarlint/issuestore/7/5/75166fe8846334cce3a5dc584e598185a9be6805
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
26 changes: 11 additions & 15 deletions
26
packages/java/.idea/sonarlint/issuestore/c/3/c3ea51712852783ce4ce42ff276ad9325d6555ff
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
packages/java/src/main/java/io/loganmatic/TestMethods.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package io.loganmatic; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import static java.lang.System.*; | ||
|
||
public class TestMethods { | ||
public static void main(String[] args) { | ||
out.println("Hello, World! This is a test of the methods in the Main class. \n"); | ||
|
||
// Call the method | ||
out.println("EulerNumber: " + Main.getEulerNumber()); | ||
out.println("Pi: " + Main.getPi()); | ||
|
||
// Testing the methods | ||
out.println("Factorial of 5: " + Main.factorial(5)); | ||
out.println("Square root of 16: " + Main.squareRoot(16)); | ||
out.println("Cubic root of 27: " + Main.cubicRoot(27)); | ||
out.println("Sine of 30: " + Main.sine(30)); // Some problems with the trigonometric functions | ||
out.println("Cosine of 60: " + Main.cosine(60)); | ||
out.println("Tangent of 45: " + Main.tangent(45)); | ||
out.println("Cotangent of 45: " + Main.cotangent(45)); | ||
out.println("Secant of 60: " + Main.secant(60)); | ||
out.println("Cosecant of 30: " + Main.cosecant(30)); | ||
out.println("Absolute value of -10: " + Main.absoluteValue(-10)); | ||
|
||
List<Integer> values = Arrays.asList(12, 18); | ||
out.println("GCD of 12 and 18: " + Main.gcd(values)); | ||
out.println("LCM of 12 and 18: " + Main.lcm(values)); | ||
|
||
out.println("Random number between 1 and 10: " + Main.randomNumberBetween(1, 10)); | ||
|
||
// Testing the equations | ||
out.println("Linear equation result: " + Main.linearEquation(2, 3).msg); | ||
out.println("Quadratic equation result: " + Main.quadraticEquation(1, -3, 2).msg); | ||
out.println("Cubic equation result: " + Main.cubicEquation(1, -6, 11, -6).msg); | ||
} | ||
} |
Binary file not shown.
Binary file not shown.