Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/main/java/com/thealgorithms/maths/Area.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static double surfaceAreaCube(final double sideLength) {
* Calculate the surface area of a cuboid.
*
* @param length length of the cuboid
* @param width width of the cuboid
* @param width width of the cuboid
* @param height height of the cuboid
* @return surface area of given cuboid
*/
Expand Down Expand Up @@ -72,7 +72,7 @@ public static double surfaceAreaSphere(final double radius) {
/**
* Calculate the surface area of a pyramid with a square base.
*
* @param sideLength side length of the square base
* @param sideLength side length of the square base
* @param slantHeight slant height of the pyramid
* @return surface area of the given pyramid
*/
Expand All @@ -88,6 +88,13 @@ public static double surfaceAreaPyramid(final double sideLength, final double sl
return baseArea + lateralSurfaceArea;
}

public static double surfaceAreaOfWhatttt(final double radius) {
if (radius <= 0) {
throw new IllegalArgumentException("");
}
return radius * 114.514;
}

/**
* Calculate the area of a rectangle.
*
Expand Down
Loading