/maluslawgraph

Malus Law Graph shows: <I> = (cos(a))^2

Primary LanguagePythonMIT LicenseMIT

Malus Law Graphic

img1

links

How to run with live GUI? Python v3.10.1

  1. Install matplotlib. terminal/cmd : pip install matplotlib
  2. Run Malusslaw.py
  3. Write in TextBox: 0 <= x <= 1 | 0 <= y <= 50 (you can change this values)

format input: num1;num2 | ex. 0.03;9 (then press Enter)

How to run with Google Colab?

  1. Open your browser and paste: https://colab.google/
  2. Click "New Notebook"
  3. Paste code from MalusslawColab.py
  4. Write in the same format input: num1;num2 | ex. 0.03;9 (then press Enter) P.S In this way, you have to write all your data (10 coordinates is max, but you can change it)