



"""simple docstring"""

def __lowercase    (							_a					):

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




def __lowercase    (							_a					):

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


if __name__ == "__main__":
     import doctest

     doctest.testmod()










"""simple docstring"""

from dataclasses import dataclass
from enum import Enum
from typing import List, Optional, Union

import numpy as np
import PIL
from PIL import Image

from ...utils import BaseOutput, is_torch_available, is_transformers_available




@dataclass
class  _UpperCAmelCase (    lowerCAmelCase__):
 _lowerCAmelCase     :    Union[List[PIL.Image.Image], np.ndarray]
 _lowerCAmelCase     :    Optional[List[bool]]


if is_transformers_available() and is_torch_available():
     from .pipeline_semantic_stable_diffusion import SemanticStableDiffusionPipeline





