Advertisement
Peaser

maths

Apr 4th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.14 KB | None | 0 0
  1. sa=lambda x,y,z:2*((x*y)+(x*z)+(y*z))
  2. vl=lambda x,y,z:x*y*z
  3. sv_=lambda x,y,z:(sa(x,y,z),vl(x,y,z))
  4. def sv(x,y,z):
  5.     x,y,z=(float(i)for i in(x,y,z))
  6.     return sa(x,y,z)/vl(x,y,z)
  7. x,y,z = [[i*_ for i in range(1,11)]for _ in range(1,4)]
  8. f=[sv_(*i)for i in zip(x,y,z)]
  9. print f
  10. """
  11.    >>> f
  12.    [(22, 6),
  13.     (88, 48),
  14.     (198, 162),
  15.     (352, 384),
  16.     (550, 750),
  17.     (792, 1296),
  18.     (1078, 2058),
  19.     (1408, 3072),
  20.     (1782, 4374),
  21.     (2200, 6000)]
  22.  
  23. Expressed as fractions, this equates to...
  24. (11/3, 11/6, 11/9, 11/12, 11/15, 11/18, 11/21, 11/24, 11/27, 11/30, )
  25.  
  26.  
  27. Continuations:
  28. ...11/33, 11/36, 11/39, 11/42, 11/45, 11/48, 11/51, 11/54, 11/57, 11/60, 11/63, 11/65, 11/69...
  29. Ever increasing by 3
  30.  
  31. Formula
  32.  
  33.    given
  34.        >>> zip(x,y,z)
  35.        [(1, 2, 3),
  36.         (2, 4, 6),
  37.         (3, 6, 9),
  38.         (4, 8, 12),
  39.         (5, 10, 15),
  40.         (6, 12, 18),
  41.         (7, 14, 21),
  42.         (8, 16, 24),
  43.         (9, 18, 27),
  44.         (10, 20, 30)]
  45.        
  46.    The basic fraction form of (SurfaceArea / Volume) is 11/x+3 for each iteration of x.
  47. """
  48.  
  49. (e^(i*pi)+1) out of (e^(((ln(2)+ln(5))/pi)*pi))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement