Commit Graph

9 Commits

Author SHA1 Message Date
kvadrik
0d2a98e9f8 Added volume of a torus (#7294)
* Added volume of a torus

Added function calculation the volume of a torus according to the formula:
V = 2 * pi^2 * R * r^2
where R is the major radius and r is the minor radius of the torus.

* Added test for torus volume
2026-02-28 20:08:50 +01:00
kvadrik
705eb52833 Added volume of a pyramid frustum (#7291)
* Added volume of a pyramid frustum

Added a function calculating volume of a pyramid frustum, V=(S1+S2+sqrt(S1*S2))*h/3

* compiler error fixed

* Added pyramid frustum test case

* extra space removed
2026-02-27 22:35:42 +01:00
Ahmed Elazab
7c56a734e9 Add Volume "Algorithm Frustum Of Cone" Then Test It. (#5479)
* Add Function volumeFrustum To Calculate Frustum Of Cone Then Test It.

* Add Function volumeFrustumOfCone To Calculate Frustum Of Cone Then Test It.

* Update VolumeTest.java

* Update Volume.java
2024-09-30 23:24:24 +05:30
Piotr Idzik
d3bb691f59 style: enable HideUtilityClassConstructor in checkstyle (#5147) 2024-05-08 09:58:29 +03:00
Isak Einberg
3b2ca81765 Fix spelling in Volume (#3893) 2023-03-24 19:22:56 +00:00
Taranjeet Singh Kalsi
5ab1b6c319 Created VolumeTest.java & Fixed Bugs in Volume.java (#3682)
* Fixed functions and removed main() in Volume.java

Fixed calculation errors in volumeSphere() and volumeHemisphere() functions and removed main() and changed functions access specifier from private to public

* Created VolumeTest.java

Created VolumeTest.java JUnit Tests for Volume.java

Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
2022-10-28 00:35:59 +05:30
acbin
e96f567bfc Format code with prettier (#3375) 2022-10-03 17:23:00 +08:00
Vɪɴᴀʏᴀᴋ Pᴀɴᴅᴇʏ
5c7c6c4702 Add volume of prism and pyramid (#2902) 2022-01-10 17:36:37 +08:00
Aitor Fidalgo Sánchez
9fb3364ccc Change project structure to a Maven Java project + Refactor (#2816) 2021-11-12 08:59:36 +02:00