This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
N = np.arange(0,6,1) 2 x1=(1./2)**N | |
x2=(1./7)**N | |
x3 = (1./2) ** (2**N) | |
fig = plt.figure(figsize=(12, 8)) | |
plt.plot(N, x1, marker="o", label='error for $x_k$') | |
plt.plot(N, x2, marker="o", label=r'error for $\bar x_k$') | |
plt.plot(N, x3, marker="o", label=r'error for $\hat x_k$') | |
plt.legend(loc='lower left', fontsize=18) | |
plt.xlabel('k', fontsize=18) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
N = np.arange(0,15,1) | |
err1 = (1./2) ** N | |
err2 = (1./7) ** N | |
err3 = (1./2) ** (2**N) 5 | |
fig = plt.figure(figsize=(12, 8)) | |
plt.plot(N, err1, marker="o", label='error for $x_k$') | |
plt.plot(N, err2, marker="o", label=r'error for $\bar{x}_k$') | |
plt.plot(N, err3, marker="o", label=r'error for $\hat{x}_k$') | |
plt.legend(loc='upper right', fontsize=18) |