Guest User

Untitled

a guest
Apr 26th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. from visual import *
  2. from visual.graph import *
  3. gdisplay(foreground=color.yellow, background=color.black, title='sin(x) and cos(x)',xtitle='X',ytitle='f(x)')
  4. Func = gcurve()
  5. Func2 = gcurve()
  6. for X in arange(0.0, 2.001*pi, pi/100.0):
  7. Func.plot(pos=(X,sin(X)))
  8. Func2.plot(pos=(X,cos(X)))
Add Comment
Please, Sign In to add comment