Skip to content

Commit

Permalink
update exports
Browse files Browse the repository at this point in the history
  • Loading branch information
co1emi11er2 committed Apr 19, 2024
1 parent 926de88 commit 2710bdb
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/TestHandcalcFunctions.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
module TestHandcalcFunctions


export calc_Ix, calc_Is
export calc_Ix, calc_Is, calc_Iy, area_rectangle

function calc_Ix(b, h)
Ix = b*h^3/12
return Ix
end

"""
calc_Iy(h, b=15; expo=3, denominator=12)
Calculate Iy (second moment of inertia abour the y-axis) of a rectangle.
# Arguments
- `h`: the height of the rectangle
- `b`: the width of the rectangle
- `expo`: the exponent (for testing purposes)
- `denominator`: the denominator (for testing purposes)
"""
function calc_Iy(h, b=15; expo=3, denominator=12)
Iy = h*b^expo/denominator
return Iy
Expand Down Expand Up @@ -37,4 +51,4 @@ function calc_Is(b, h)
return Ix, Iy
end

end
end

0 comments on commit 2710bdb

Please sign in to comment.