Important Notice:

Complex Number (complex) in Python

Complex Number (complex) in Python

1 views 1 min read

Complex Number (complex) in Python (सम्मिश्र संख्या डेटा टाइप) :-

Complex Number (complex) Python का एक Built-in Numeric Data Type (बिल्ट-इन संख्यात्मक डेटा टाइप) है, जिसका उपयोग सम्मिश्र संख्याओं (Complex Numbers) को संग्रहित (Store) करने के लिए किया जाता है।

एक Complex Number दो भागों से मिलकर बना होता है:

  • Real Part (वास्तविक भाग)
  • Imaginary Part (काल्पनिक भाग)

Python में Imaginary Part को दर्शाने के लिए j का उपयोग किया जाता है, जबकि गणित में सामान्यतः i का प्रयोग किया जाता है।

Complex Number का उपयोग मुख्य रूप से Mathematics, Engineering, Electronics, Signal Processing, Physics, Artificial Intelligence, Machine Learning तथा Scientific Computing में किया जाता है।

English

A Complex Number (complex) is a built-in Numeric Data Type in Python used to store complex numbers.

A complex number consists of two parts:

  • Real Part
  • Imaginary Part

Python uses j to represent the imaginary part, whereas mathematics usually uses i.

Complex numbers are commonly used in mathematics, engineering, electronics, signal processing, physics, artificial intelligence, machine learning, and scientific computing.

Syntax (सिंटैक्स) -

variable_name = real_part + imaginary_part j
 
Example -
a = 3 + 4j
b = -5 + 2j
c = 0 + 7j

print(a)
print(b)
print(c)
 

Related Notes