Open In App

Python | Numpy np.ifftn() method

Last Updated : 21 Nov, 2019
Comments
Improve
Suggest changes
Like Article
Like
Report
With the help of np.ifftn() method, we can get the N-D Inverse Fourier Transform by using np.fftn() method.
Syntax : np.ifftn(Array) Return : Return a N-D series of inverse fourier transformation.
Example #1 : In this example we can see that by using np.ifftn() method, we are able to get the N-D series of inverse fourier transformation by using this method. Python3 1=1
# import numpy
import numpy as np

a = np.array([-1, 3, -4, 7, 0])

# using np.ifftn() method
gfg = np.fft.ifftn(a)

print(gfg)
Output :
[ 1. +0.j -0.5-0.72249365j -0.5+2.44499549j -0.5-2.44499549j -0.5+0.72249365j]
Example #2 : Python3 1=1
# 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.ifftn() method
gfg = np.fft.ifftn(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]]

Next Article
Practice Tags :

Similar Reads