ubuntu2004
U ��b; � @ s� d dl Zd dlmZ d dlmZ dZdZdd� Z ddgZ e�d d d �Zee e eeefd�Z e�e dd�d f e dd�df d � e�d� e�d� e�d� e�� e�� e�� dS )� N)�odeintg��Q��#@� c C s$ | \}}||| t �|� g}|S )N)�np�sin)�y�t�g�L�theta�omegaZdydt� r �3/home/user/Group Project/simplependulumphaseplot.py�model s r g��������g � �e )�args� �bz&Angular velocity (radians per seconds)zAngular displacement (radians)zFig 3)�numpyr �matplotlib.pyplot�pyplot�pltZscipy.integrater r r r �y0�linspacer Zsol�plot�ylabel�xlabel�title�grid�showr r r r �<module> s &