-
Notifications
You must be signed in to change notification settings - Fork 1
Documentation for area.py
DISCLAIMER: The area calculator is not 100% accurate. We provide NO WARRANTY for any mistakes made due to this software. Further info is in the LICENSE file.
I suggest if you aren't developing a program using Mathmod, just boot up Palc and use the interactive mode. It's much better than what you're trying to do here.
Syntax: area_equilateral_triangle(<side_of_triangle>), replacing <side_of_triangle> with the length of the side of the triangle.
Syntax: area_right_triangle(<base_of_triangle>, <height_of_triangle>), replacing <base_of_triangle> and <height_of_triangle> with the appropriate measurements.
Syntax: area_acute_triangle(<length_of_side>, <length_of_side_2>, <length_of_side_3>), replacing <length_of_side> and the others with the proper measurements.
Syntax: area_obtuse_triangle(<length_of_side>, <length_of_side_2>, <length_of_side_3>), replacing with the correct numbers.
Syntax: area_square(<side>), replacing with the length of the side.
Syntax: area_rectangle(<base>, <height>), adding the proper numbers.
Syntax: area_parallelogram(<base>, <height>), adding the measurements.
Syntax: area_rhombus(do, ds), replacing do with the first diagonal and ds with the second diagonal
Syntax: area_trapezium(a, b, h), replacing a and b with the parallel sides, and h as the height.
Syntax: area_circle(r), replacing r with the radius of the circle
Syntax: area_semicircle(r), replacing r with the radius of the circle
Syntax: area_circular_sector(r, a), replacing r with the radius and a with the angle of the sector in degrees
Syntax: area_ring(ro, rs), replacing ro with the radius of the outer circle and rs with the radius of the inner circle
Syntax: area_ellipse(a, b), replacing a and b with the length of major and minor axis, respectively