Skip to content
Menu
Twisha's Blog
  • About me
Twisha's Blog

Pi Circle Programme

Posted on September 8, 2024
Share this...
  • Whatsapp
  • Facebook
  • Twitter
  • Email

import matplotlib.pyplot as plt
import numpy as np
theta_degrees = np.linspace(0, 113*360, 10000)
theta_radians = np.deg2rad(theta_degrees)
z = np.exp(theta_radians * 1j) + np.exp(np.pi * theta_radians * 1j)
x = np.real(z)
y = np.imag(z)
plt.figure(figsize=(10, 10))
plt.plot(x, y, color=’white’, linewidth=0.5)
plt.gca().set_facecolor(‘black’)
plt.gca().set_aspect(‘equal’)
plt.grid(False)
plt.xlim(-2.5, 2.5)
plt.ylim(-2.5, 2.5)
plt.show()

Recent Posts

  • Sight of Nature
  • Pi Circle Programme
  • AN ADVENTUROUS TRIP TO CHAILĀ 
  • A Day Trip to Kasauli
  • Memorable Trip to Barog

Recent Comments

No comments to show.

Archives

  • July 2025
  • September 2024
  • May 2023
  • August 2022

Categories

  • Creative work
  • Everything Else
  • Travel notes
©2025 Twisha's Blog | Powered by SuperbThemes