16 lines
294 B
Python
16 lines
294 B
Python
import numpy as np
|
|
import matplotlib.pyplot as plt
|
|
import math
|
|
|
|
def h(x):
|
|
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()
|