Skip to content
Merged
Changes from 1 commit
Commits
File filter

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
Next Next commit
Removed * 1
  • Loading branch information
Japoncio3k committed Oct 30, 2022
commit 5eed9a9571b6f8f6bfbad839bec4119ee724a79e
4 changes: 2 additions & 2 deletions Geometry/Pyramid.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export default class Cone {
}

volume = () => {
return this.baseArea() * this.height * 1 / 3
return this.baseArea() * this.height / 3
}

surfaceArea = () => {
return this.baseArea() + this.bsl * 4 * 1 / 2 * Math.sqrt(Math.pow(this.bsl / 2, 2) + Math.pow(this.height, 2))
return this.baseArea() + this.bsl * 4 / 2 * Math.sqrt(Math.pow(this.bsl / 2, 2) + Math.pow(this.height, 2))
}
}