SHARE
TWEET

coordenadas hiperbolicas

caciojg Aug 25th, 2012 31 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top