



"""simple docstring"""






from __future__ import annotations






def 			snake_case_    ( A_   :						float,							A_   :						float,							A_   :						float,							):


       '''simple docstring'''





       if (stress, tangential_force, area).count(0		) != 1:
              raise ValueError('''You cannot supply more or less than 2 values'''		)
       elif stress < 0:
              raise ValueError('''Stress cannot be negative'''		)
       elif tangential_force < 0:
              raise ValueError('''Tangential Force cannot be negative'''		)
       elif area < 0:
              raise ValueError('''Area cannot be negative'''		)
       elif stress == 0:
              return (
                  "stress",
                  tangential_force / area,
              )
       elif tangential_force == 0:
              return (
                  "tangential_force",
                  stress * area,
              )
       else:
              return (
                  "area",
                  tangential_force / stress,
              )


if __name__ == "__main__":
   import doctest

   doctest.testmod()






import importlib.metadata
from typing import Union

from packaging.version import Version, parse

from .constants import STR_OPERATION_TO_FUNC


SCREAMING_SNAKE_CASE						:Union[str, Any]			=  parse(importlib.metadata.version('''torch'''))



def       _lowerCAmelCase    (				lowerCAmelCase_				:Union[str, Version]		,    lowerCAmelCase_				:str		,    lowerCAmelCase_				:str				)->Any:
   '''simple docstring'''






   if operation not in STR_OPERATION_TO_FUNC.keys():
      raise ValueError(F'''`operation` must be one of {list(STR_OPERATION_TO_FUNC.keys()				)}, received {operation}'''				)
   snake_case_            =       STR_OPERATION_TO_FUNC[operation]
   if isinstance(lowerCAmelCase_		,    lowerCAmelCase_				):
      snake_case_            =       parse(importlib.metadata.version(lowerCAmelCase_				)				)
   return operation(lowerCAmelCase_		,    parse(lowerCAmelCase_				)				)



def       _lowerCAmelCase    (				lowerCAmelCase_				:str		,    lowerCAmelCase_				:str				)->Any:
   '''simple docstring'''






   return compare_versions(lowerCAmelCase_		,    lowerCAmelCase_		,    lowerCAmelCase_				)




