Pushing everything again, accidentally deleted my remote repository
This commit is contained in:
commit
1bee3e8e5b
101 changed files with 9428 additions and 0 deletions
18
ex2/ex2_C_main.py
Normal file
18
ex2/ex2_C_main.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import numpy as np
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
def u(x,p):
|
||||
return (np.exp(p*x) - 1)/(np.exp(p) - 1)
|
||||
|
||||
x = np.linspace(0, 1, 200)
|
||||
|
||||
|
||||
plt.figure(figsize=(8, 5))
|
||||
for p in [ -3, -1, -0.5, 0.5, 2, 4]:
|
||||
plt.plot(x, u(x, p), label="p ="+ str(p))
|
||||
|
||||
plt.xlabel('x')
|
||||
plt.ylabel('u(x)')
|
||||
plt.legend()
|
||||
plt.grid(True)
|
||||
plt.show()
|
||||
BIN
ex2/ex_2_Corrected.pdf
Normal file
BIN
ex2/ex_2_Corrected.pdf
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue