Skip to content

Added spheres union #6879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Oct 27, 2022
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6ea3b00
Spheres union
matteomessmer Oct 9, 2022
2317ca2
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 9, 2022
4585796
Update volume.py
matteomessmer Oct 9, 2022
f2d1867
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 9, 2022
73337b0
Update volume.py
matteomessmer Oct 9, 2022
fd2f2a3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 9, 2022
6dccffe
Merge branch 'master' into master
matteomessmer Oct 14, 2022
af41981
Merge branch 'TheAlgorithms:master' into master
matteomessmer Oct 16, 2022
8b2ff50
f-strings
matteomessmer Oct 21, 2022
794b98c
Update maths/volume.py
matteomessmer Oct 27, 2022
bc48147
Merge branch 'TheAlgorithms:master' into master
matteomessmer Oct 27, 2022
4d9c415
more tests
matteomessmer Oct 27, 2022
4cda451
Merge branch 'TheAlgorithms:master' into master
matteomessmer Oct 27, 2022
ae9d9e2
fix non negative
matteomessmer Oct 27, 2022
b7510d0
fix 0 radius
matteomessmer Oct 27, 2022
940fc1c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 27, 2022
0cdf596
fix tests
matteomessmer Oct 27, 2022
f295743
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 27, 2022
d0d2d2a
fix tests
matteomessmer Oct 27, 2022
39536fd
fix print
matteomessmer Oct 27, 2022
6b8b27b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 27, 2022
15c2634
fix comment
matteomessmer Oct 27, 2022
2e1ca03
fix comment
matteomessmer Oct 27, 2022
55a8084
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 27, 2022
3893e2f
Update volume.py
matteomessmer Oct 27, 2022
a098e3a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 27, 2022
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
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 27, 2022
commit a098e3a52a676c8827da6132b5dcc29f12cca411
5 changes: 4 additions & 1 deletion maths/volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,10 @@ def main():
print(f"Spherical cap: {vol_spherical_cap(1, 2) = }") # ~= 5.24
print(f"Spheres intersetion: {vol_spheres_intersect(2, 2, 1) = }") # ~= 21.21
print(f"Spheres union: {vol_spheres_union(2, 2, 1) = }") # ~= 45.81
print(f"Hollow Circular Cylinder: {vol_hollow_circular_cylinder(1, 2, 3) = }") # ~= 28.3
print(
f"Hollow Circular Cylinder: {vol_hollow_circular_cylinder(1, 2, 3) = }"
) # ~= 28.3


if __name__ == "__main__":
main()