#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Aug 26 20:18:49 2024

@author: sam
"""

import numpy as np
import matplotlib.pyplot as plt

'''a)'''

x = np.linspace(0,2,5)
y = np.linspace(0,5,10)

X,Y = np.meshgrid(x,y)



'''b)'''

a = np.linspace(-2,2,100)
b = np.linspace(-2,2,100)

A,B = np.meshgrid(a,b)



'''c)'''

plt.pcolor(X,Y,np.exp(-X**2-Y**2))
plt.show()

plt.pcolor(A,B,np.exp(-A**2-B**2))