  # Python | Numpy np.ifftn () method

NumPy | Python Methods and Functions

With the `np.ifftn() ` method we can get ND inverse Fourier transform using ` np.fftn () `.

Syntax: `np.ifftn(Array)`

Return: Return a ND series of inverse fourier transformation.

Example # 1:
In this example, we can see that using ` np .ifftn () ` we can get the ND series of the inverse Fourier transform using this method.

 ` # NumPy import ` ` import ` ` numpy as np `   ` a ` ` = ` ` np.array ([` ` - ` ` 1 ` `, ` ` 3 ` `, ` ` - ` ` 4 ` `, ` ` 7 ` `, ` ` 0 ` `]) `   ` # using the 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:

` `

 ` # NumPy import ` ` 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 the 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]]