darksantos

Ejercicio139

Jun 11th, 2012
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. from modulepythong import *
  3.  
  4. x1 = -2
  5. x2 = 2
  6. puntos = 50
  7.  
  8. window_size(500, 500)
  9. window_coordinates(x1-1, -5, x2+1, 5)
  10.  
  11. incremento = 0.0002
  12.  
  13. x = x1
  14.  
  15. while x <= x2 :
  16.     if x!=-1 :
  17.         create_line(x, (x+1)**-1,x+incremento,(x+1+incremento)**-1,'blue')
  18.         x += incremento
  19.        
  20. create_point(-1, 0, 'red')
  21.          
  22. print'Pulsa <Return> para salir: '
  23. raw_input()
Advertisement
Add Comment
Please, Sign In to add comment