Skip to content
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

Sphere Volume Code Changed #56

Merged
merged 26 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8fae17d
Update README.md
vs-turner Aug 5, 2024
072ecb5
Update README.md (#35)
jonathanwehnert Aug 5, 2024
752c685
Create clothes.txt
cmcurran410 Aug 5, 2024
e7ba8b9
Create figuring-out-who-to-call
lsutkus2 Aug 5, 2024
a2ab013
Merge branch 'main' into 9-demo-issue
mayalakshman Aug 5, 2024
3600b14
Merge pull request #50 from NeuroHackademy2024/9-demo-issue
vs-turner Aug 5, 2024
9e7c353
Merge pull request #52 from NeuroHackademy2024/40-getting-clothes-back-1
lsutkus2 Aug 5, 2024
19059bc
one more change for practice
kafadare Aug 5, 2024
da07b58
Updated README.md
morganfitzgerald Aug 5, 2024
c7428aa
Update sphere.py with new feature
ashleyhumphries Aug 5, 2024
e6c96c1
Merge branch 'main' into 31-add-square-functions-1
kafadare Aug 5, 2024
90fe252
Merge pull request #57 from NeuroHackademy2024/40-getting-clothes-back-2
lsutkus2 Aug 5, 2024
48eea70
Merge branch 'main' of https://github.com/NeuroHackademy2024/geometry
ashleyhumphries Aug 5, 2024
e30e9cc
Update README.md
JonySheynin Aug 5, 2024
5e455c3
Merge pull request #55 from NeuroHackademy2024/31-add-square-functions-1
kafadare Aug 5, 2024
3ed0b4e
Update README.md
shuhei-hara Aug 5, 2024
bb8a674
Merge branch 'main' of https://github.com/NeuroHackademy2024/geometry
ashleyhumphries Aug 5, 2024
f875e81
Merge branch 'main' into Test-issue-branch-br1
arokem Aug 5, 2024
ec8dc4d
Merge pull request #59 from NeuroHackademy2024/Test-issue-branch-br1
arokem Aug 5, 2024
331757a
Merge branch 'main' into 23-modify-readme-file-a-little-bit
arokem Aug 5, 2024
6f31b84
Merge pull request #63 from NeuroHackademy2024/23-modify-readme-file-…
arokem Aug 5, 2024
9110ad5
Merge branch 'main' into 47-resting-state-analysis
neortega25 Aug 5, 2024
8574a31
Create naming my file
atasevac Aug 5, 2024
d81e145
Merge pull request #61 from NeuroHackademy2024/47-resting-state-analysis
neortega25 Aug 5, 2024
f43a771
Merge pull request #68 from NeuroHackademy2024/40-getting-clothes-back-4
atasevac Aug 5, 2024
fba509c
Merge branch 'main' of https://github.com/NeuroHackademy2024/geometry
ashleyhumphries Aug 5, 2024
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: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,13 @@ this is a README that I want to change like this.

and now it's got a second line!

MF: Making a change.
Checking out how to complete work and open a pull request!

MF: Making a change.

ML: making another change.

I changed a README file.

JW: Making more changes.

3 changes: 3 additions & 0 deletions clothes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
help
clothes stolen
am cold
1 change: 1 addition & 0 deletions figuring-out-who-to-call
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo 'Ghostbusters!'
1 change: 1 addition & 0 deletions naming my file
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
file
21 changes: 21 additions & 0 deletions src/geometry/sphere.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from math import pi


def calculate_surface_area(r):
"""
Calculate the surface area of a sphere.

This uses the standard mathematical calculation:

$4\pi r ^2$

Parameters
----------
r : float, the radius

Returns
-------
float : the surface area of the sphere
"""
surface_area = 4 * pi * r **2
return surface_area
Loading