continued with task 4

This commit is contained in:
leobr 2022-10-20 14:44:10 +02:00
parent 7921fabe3b
commit 1d49cdbaf6
1 changed files with 10 additions and 1 deletions

View File

@ -3,4 +3,13 @@ import matplotlib.pyplot as plt
import math
def h(x):
pass
return math.sqrt(100 * math.pow(x,2) - 200 * x + 99)
xStart = 1.1
xStop = 1.31
xStep = math.pow(10,-7)
x = np.arange(xStart,xStop + xStep,xStep)
y = [h(x_val) for x_val in x]
plt.plot(x,y, label='h(x)')
plt.show()