#Program

Опубликовано: 29 Сентябрь 2024
на канале: Sneha IITian
1,104
14

Music Credits
Music Cuba
Musician ASHUTOSH


Sine wave is formed by using sin( ) method and passing the values on the x-axis as the parameter.


#Source_Code :

#PYTHON PROGRAM FOR PLOTTING SINE WAVE USING LINE CHART

import numpy as np
import matplotlib.pyplot as plt

#Grid of 0.01 spacing from -2 to 1
xvals=np.arange(-2,1,0.01)

#Evaluate function on xvals
yvals=np.sin(xvals)

#Create line plot with yvals against xvals
plt.plot(xvals,yvals)

#Show the figure
plt.show()




Link to Python Basics:
👇👇👇
   • Playlist  

Link to Computer System and Python Fundamentals:
👇👇👇
   • Computer System  

Link to Python Codes:
👇👇👇
   • Python Codes  

Link to Math Functions:
👇👇👇
   • Playlist  

Link to String Functions:
👇👇👇
   • String & Math Module  

Link to List and Dictionary Functions:
👇👇👇
   • Sequences in Python  

Link to Patterns:
👇👇👇
   • Patterns in Python  

Link to Python Library Programs:
👇👇👇
   • Python Libraries