Skip to content

This is a program to draw Lissajous figures for any general case of phase difference, frequency or amplitude. Hope you enjoy

License

Notifications You must be signed in to change notification settings

iashyam/Lissajous-Figures

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lissajous Figures

Making Lissajous's Figures is a teadous process when we start from tracing the sine curves and making the superposition. It was very difficuilt for me too. Then I realised I had programming power. So I made this program.

What are Lissajous's Figures?

When two perpendicular simpoer harmonic motions superimpose, they make some beautiful images and it is called Lissajous's Figures.

Genral equation for Lissajous's Figures is given by

$$\frac{x^2}{a^2}+\frac{y^2}{b^2}+\frac{2xy}{ab}\cos\delta=\sin^2\delta$$

Read More

How to draw them?

In this program I have plotted the first SHM on x axis and the other SHM on y axis. $$x=a\sin(t\omega_1)$$ $$y=b\sin(t\omega_2+\delta)$$

I have gievn sliders to control

  1. the phase differace delta
  2. The ratio of frequencies w1/w2
  3. The Ratio of amplitudes

Demo

demo

Installation

Requarmetnes

Python: Download from here and Install

git: get from here

Install my-project with command line

Install numpy and matplotlib

pip install numpy
pip install matplotlib

Clone the Project

  git clone https://github.com/iashyam/Lissajous-Figures

To to the folder

  cd Lissajous-Figures

Open it with Python

python lissajous.py

Contributing

Contributions are always welcome!

Please adhere to this project's code of conduct.

License

MIT

Copyright Shyam Sunder © 2021

About

This is a program to draw Lissajous figures for any general case of phase difference, frequency or amplitude. Hope you enjoy

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages