Sunday, February 22, 2026
HomeLanguagesPython | Numpy np.ifft2() method

Python | Numpy np.ifft2() method

With the help of np.ifft2() method, we can get the 2-D Inverse Fourier Transform by using np.ifft2() method.

Syntax : np.fft2(Array)
Return : Return a 2-D series of inverse fourier transformation.

Example #1 :
In this example we can see that by using np.ifft2() method, we are able to get the 2-D series of inverse fourier transformation by using this method.




# import numpy
import numpy as np
  
a = np.array([[5, 4, 6, 3, 7], [-1, -3, -4, -7, 0]])
# using np.ifft2() method
gfg = np.fft.ifft2(a)
  
print(gfg)


Output :

[[ 1. +0.j 0.80901699-0.21796276j -0.30901699-0.92330506j
-0.30901699+0.92330506j 0.80901699+0.21796276j]
[ 4. +0.j -0.5854102 +0.j 0.0854102 +0.j
0.0854102 +0.j -0.5854102 +0.j ]]

Example #2 :




# import numpy
import numpy as np
  
a = np.array([[-5.5, 4.4, -6.6, 3.3, -7.7], [1.1, -3.3, 4.4, -7.7, 0]])
# using np.ifft2() method
gfg = np.fft.ifft2(a)
  
print(gfg)


Output :

[[-1.76+0.j -0.11+0.96624249j -0.11+0.30801859j -0.11-0.30801859j
-0.11-0.96624249j]
[-0.66+0.j -0.66+0.17149948j -0.66+2.99751362j -0.66-2.99751362j
-0.66-0.17149948j]]

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32506 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6882 POSTS0 COMMENTS
Nicole Veronica
12005 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12099 POSTS0 COMMENTS
Shaida Kate Naidoo
7011 POSTS0 COMMENTS
Ted Musemwa
7255 POSTS0 COMMENTS
Thapelo Manthata
6967 POSTS0 COMMENTS
Umr Jansen
6956 POSTS0 COMMENTS