Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- from mpl_toolkits.mplot3d import Axes3D
- import matplotlib.pyplot as plt
- import random
- e = 2.718281828459
- def fun(x, y):
- return ((x**2+ 3*y**2)*e**-x-y)
- fig = plt.figure()
- ax = fig.add_subplot(111, projection='3d')
- x = np.arange(-1, 2, 50)
- y= np.arange(-2, 1, 50)
- X, Y = np.meshgrid(x, y)
- ax.plot_surface(X, Y)
- ax.set_xlabel('X Label')
- ax.set_ylabel('Y Label')
- #I'm having a hard time getting f(x,y) right, and I don't have the time to go over this as I want.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement