started Task 4
This commit is contained in:
parent
1d49cdbaf6
commit
dff6d7b7b4
|
@ -4,12 +4,15 @@ import math
|
||||||
|
|
||||||
def h(x):
|
def h(x):
|
||||||
return math.sqrt(100 * math.pow(x,2) - 200 * x + 99)
|
return math.sqrt(100 * math.pow(x,2) - 200 * x + 99)
|
||||||
xStart = 1.1
|
|
||||||
xStop = 1.31
|
|
||||||
xStep = math.pow(10,-7)
|
xStep = math.pow(10,-7)
|
||||||
|
xStart = 1.1 + xStep
|
||||||
|
xStop = 1.31
|
||||||
|
|
||||||
|
|
||||||
x = np.arange(xStart,xStop + xStep,xStep)
|
x = np.arange(xStart,xStop + xStep,xStep)
|
||||||
y = [h(x_val) for x_val in x]
|
y = [h(x_val) for x_val in x]
|
||||||
|
|
||||||
plt.plot(x,y, label='h(x)')
|
plt.plot(x,y, label='h(x)')
|
||||||
|
plt.legend()
|
||||||
plt.show()
|
plt.show()
|
||||||
|
|
Loading…
Reference in New Issue