daily pastebin goal
72%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import math
  2.  
  3. class Point3D():
  4.     __slots__=('x' , 'y')
  5.  
  6. def evaluate (x , y):
  7.     z = sin(x^2)*2 - y * cos(x * y) - x
  8.     return z
  9. def mkPoint3D(x , y):
  10.     point = Point3D()
  11.     point.x = x
  12.     point.y = y
  13.     point.evaluate = z
  14.     return (x, y, z)
  15. def maxPoint([x, y, z]):
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top