Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- from modulepythong import *
- x1 = -2
- x2 = 2
- puntos = 50
- window_size(500, 500)
- window_coordinates(x1-1, -5, x2+1, 5)
- incremento = 0.0002
- x = x1
- while x <= x2 :
- if x!=-1 :
- create_line(x, (x+1)**-1,x+incremento,(x+1+incremento)**-1,'blue')
- x += incremento
- create_point(-1, 0, 'red')
- print'Pulsa <Return> para salir: '
- raw_input()
Advertisement
Add Comment
Please, Sign In to add comment