





'''simple docstring'''






from __future__ import annotations

from cmath import sqrt







def 					_a						(       _lowerCamelCase    ,	_lowerCamelCase    ,	_lowerCamelCase ) ->				tuple[complex, complex]:



			"""simple docstring"""


			if a == 0:
						raise ValueError("""Coefficient 'a' must not be zero.""" )
			__snake_case					:      str							      =     b * b - 4 * a * c

			__snake_case					:      Optional[Any]							      =     (-b + sqrt(_lowerCamelCase )) / (2 * a)
			__snake_case					:      Dict							      =     (-b - sqrt(_lowerCamelCase )) / (2 * a)

			return (
			    root_a.real if not root_a.imag else root_a,
			    root_a.real if not root_a.imag else root_a,
			)







def 					_a						(       ) ->				Tuple:



			"""simple docstring"""


			__snake_case      ,     __snake_case					:      Dict							      =     quadratic_roots(a=5    ,	b=6    ,	c=1 )
			print(F'''The solutions are: {solutiona} and {solutiona}''' )


if __name__ == "__main__":
	main()







from typing import Callable, Optional

from .. import Features
from ..packaged_modules.generator.generator import Generator
from .abc import AbstractDatasetInputStream



class 			__lowerCAmelCase  (						lowerCAmelCase__ ):




 def __init__(    self						,					__UpperCAmelCase						,					__UpperCAmelCase = None						,					__UpperCAmelCase = None						,					__UpperCAmelCase = False						,					__UpperCAmelCase = False						,					__UpperCAmelCase = None						,					__UpperCAmelCase = None						,					**__UpperCAmelCase						,					):



    '''simple docstring'''
    super().__init__(
        features=__UpperCAmelCase						,					cache_dir=__UpperCAmelCase						,					keep_in_memory=__UpperCAmelCase						,					streaming=__UpperCAmelCase						,					num_proc=__UpperCAmelCase						,					**__UpperCAmelCase						,					)
    __lowerCamelCase    				=     Generator(
        cache_dir=__UpperCAmelCase						,					features=__UpperCAmelCase						,					generator=__UpperCAmelCase						,					gen_kwargs=__UpperCAmelCase						,					**__UpperCAmelCase						,					)




 def 							lowerCamelCase   (    self					):



    '''simple docstring'''
    # Build iterable dataset
    if self.streaming:
       __lowerCamelCase    				=     self.builder.as_streaming_dataset(split='''train'''					)
    # Build regular (map-style) dataset
    else:
       __lowerCamelCase    				=     None
       __lowerCamelCase    				=     None
       __lowerCamelCase    				=     None
       __lowerCamelCase    				=     None

       self.builder.download_and_prepare(
           download_config=__UpperCAmelCase						,					download_mode=__UpperCAmelCase						,					verification_mode=__UpperCAmelCase						,					base_path=__UpperCAmelCase						,					num_proc=self.num_proc						,					)
       __lowerCamelCase    				=     self.builder.as_dataset(
           split='''train'''						,					verification_mode=__UpperCAmelCase						,					in_memory=self.keep_in_memory					)
    return dataset






