dodecahedron py a regular dodecahedron is a threedimensional figure made up of 12 pentagon faces having the same equal size calculates the surface area of a regular dodecahedron a 3 25 10 5 1 2 1 2 e2 where a is the area of the dodecahedron e is the length of the edge referencedodecahedron study com https study comacademylessondodecahedronvolumesurfaceareaformulas html param edge length of the edge of the dodecahedron type edge float return the surface area of the dodecahedron as a float tests dodecahedronsurfacearea5 516 1432201766901 dodecahedronsurfacearea10 2064 5728807067603 dodecahedronsurfacearea1 traceback most recent call last valueerror length must be a positive calculates the volume of a regular dodecahedron v 15 7 5 1 2 4 e3 where v is the volume of the dodecahedron e is the length of the edge referencedodecahedron study com https study comacademylessondodecahedronvolumesurfaceareaformulas html param edge length of the edge of the dodecahedron type edge float return the volume of the dodecahedron as a float tests dodecahedronvolume5 957 8898700780791 dodecahedronvolume10 7663 118960624633 dodecahedronvolume1 traceback most recent call last valueerror length must be a positive dodecahedron py a regular dodecahedron is a three dimensional figure made up of 12 pentagon faces having the same equal size calculates the surface area of a regular dodecahedron a 3 25 10 5 1 2 1 2 e 2 where a is the area of the dodecahedron e is the length of the edge reference dodecahedron study com https study com academy lesson dodecahedron volume surface area formulas html param edge length of the edge of the dodecahedron type edge float return the surface area of the dodecahedron as a float tests dodecahedron_surface_area 5 516 1432201766901 dodecahedron_surface_area 10 2064 5728807067603 dodecahedron_surface_area 1 traceback most recent call last valueerror length must be a positive calculates the volume of a regular dodecahedron v 15 7 5 1 2 4 e 3 where v is the volume of the dodecahedron e is the length of the edge reference dodecahedron study com https study com academy lesson dodecahedron volume surface area formulas html param edge length of the edge of the dodecahedron type edge float return the volume of the dodecahedron as a float tests dodecahedron_volume 5 957 8898700780791 dodecahedron_volume 10 7663 118960624633 dodecahedron_volume 1 traceback most recent call last valueerror length must be a positive
def dodecahedron_surface_area(edge: float) -> float:
    

    if edge <= 0 or not isinstance(edge, int):
        raise ValueError("Length must be a positive.")
    return 3 * ((25 + 10 * (5 ** (1 / 2))) ** (1 / 2)) * (edge**2)


def dodecahedron_volume(edge: float) -> float:
    

    if edge <= 0 or not isinstance(edge, int):
        raise ValueError("Length must be a positive.")
    return ((15 + (7 * (5 ** (1 / 2)))) / 4) * (edge**3)


if __name__ == "__main__":
    import doctest

    doctest.testmod()