https://github.com/cako/epi
Creates epicycles that pass through points
https://github.com/cako/epi
Last synced: 8 months ago
JSON representation
Creates epicycles that pass through points
- Host: GitHub
- URL: https://github.com/cako/epi
- Owner: cako
- Created: 2011-03-25T01:41:15.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-05-19T19:06:47.000Z (about 15 years ago)
- Last Synced: 2023-03-12T09:41:55.150Z (over 3 years ago)
- Language: Python
- Homepage:
- Size: 352 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
#==============================================================================#
# #
# Copyright 2011 Carlos Alberto da Costa Filho #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see . #
# #
#==============================================================================#
# #
# FILES: main.py #
# epi_examples.py #
# #
# USAGE: ./main.py #
# python main.py #
# #
# DESCRIPTION: This is a little script I wrote when I was first learning #
# about Fourier series and transforms. #
# #
# It's purpose is to use the DFT in order to generate a curve #
# interpolates it's points in a smooth way. #
# The user can enter the points to be interpolated manually or #
# choose from a list of examples. The program then calculates #
# the trigonometric polynomial using the values obtained from #
# the DFT. Finally, by plotting a parametric curve given by the #
# real and the imaginary parts of the polynomial, we can graph #
# the curve in 2D. #
# #
# More information on the trigonometric interpolation #
# polynomial can be found here: #
# http://en.wikipedia.org/wiki/Trigonometric_interpolation_polynomial#
# #
# OPTIONS: Just rewrote it. Be careful! #
# #
# REQUIREMENTS: python 2.6, numpy, matplotlib, sympy (will be optional) #
# BUGS: * When entering the list does not quit the program #
# NOTES: --- #
# AUTHOR: Carlos Alberto da Costa Filho, c.dacostaf (gmail) #
# VERSION: 0.3 #
# CREATED: Thu Mar 24 22:12:07 BRT 2011 #
# REVISION: --- #
#==============================================================================#