0% found this document useful (0 votes)
7 views

Python

The document contains a series of numerical outputs, including both finite and infinite values, as well as NaN (not a number). It also demonstrates the creation of complex numbers using different parameter configurations and checks for certain conditions, yielding a series of boolean results. Overall, it illustrates the handling of numerical data and complex number operations in programming.

Uploaded by

Ayush Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Python

The document contains a series of numerical outputs, including both finite and infinite values, as well as NaN (not a number). It also demonstrates the creation of complex numbers using different parameter configurations and checks for certain conditions, yielding a series of boolean results. Overall, it illustrates the handling of numerical data and complex number operations in programming.

Uploaded by

Ayush Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

OUTPUT:

21.89
8.0
23.0
-16.54
-24.45
inf
inf
nan
nan

complex() with no parameters: 0j


Int: first parameter only (5+0j)
Int: both parameters (7+2j)
Float: first parameter only (3.6+0j)
Float: both parameters (3.6+8.1j)
<class 'complex'>

Result: False
Result: True
Result: False
Result: False
Result: False
Result: False
Result: False
Result: True

You might also like