Skip to content

DejanKostyszyn/FourierTransformation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FourierTransformation

A program to plot fourier transformations in python3 by Dejan Kostyszyn.

Requirements

To run the program, the following requirements are necessary to be installed: Python3, NumPy, Matplotlib and Jupyter Notebook

Run the program

  1. Change into the folder, where you saved the FourierTransformation.ipynb and run jupyter-notebook.
  2. The Browser will show a menu, where you will find the file FourierTransformation.ipynb. Click on it.
  3. On the top menu click 'Cell -> Run All'

Alter the program

If you want to calculate another function, simply alter line 13. The functions either have to be NumPy functions, or you must include the according libraries. E.g. the math module.

In case you want to alter f(x), make sure that f(x) fits Dirichlets conditions:

  • is in in finitely many intervals static and monotone
  • If f is not static in , then

Alter f(x): Example 1

Change return x to return np.exp(-x)

Alter f(x): Example 2

Change return x to

if(x < 0):
        return 0
else:
        return x

Alter n

If you want to alter the depth of the approximation, you can simply alter n in line 9. It is required that n is a numpy array, i.e. you can not simply write n = 100. Instead you have to write n = np.array([v]), if you want to use only one value v of datatype int16.

If you find any mistakes, please feel free to contact me.

About

A program to plot fourier transformations in python3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published