Advertisement
caciojg

coordenadas hiperbolicas

Aug 25th, 2012
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. #! /usr/bin/env python
  2. #-*- coding: utf-8-*-
  3.  
  4. #Calcula todos es resultados possiveis de y=12/x, com x incrementando 0,1.
  5.  
  6. y = float()
  7. x = float(1)
  8. r = []
  9.  
  10. while x <= 12:
  11.         y = 12/x
  12.         a = '%.1f'%(x)
  13.         b = '%.1f'%(y)
  14.         r.append([a,b])
  15.         x = x + 0.1
  16.  
  17. print r
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement