started Task 4
This commit is contained in:
		
							parent
							
								
									5912373856
								
							
						
					
					
						commit
						ecd625aaff
					
				| 
						 | 
				
			
			@ -11,8 +11,7 @@ def h1(x):
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
def h1_diff(x):
 | 
			
		||||
    return (100 * x - 100) / math.sqrt(100 * math.pow(x, 2) - 200 * x + 99)
 | 
			
		||||
 | 
			
		||||
    return (100 * x - 100) / math.sqrt((10*x-11)*(10*x-9))
 | 
			
		||||
 | 
			
		||||
def h2(x):
 | 
			
		||||
    return math.sqrt((10 * x - 9) * (10 * x - 11))
 | 
			
		||||
| 
						 | 
				
			
			@ -30,10 +29,10 @@ x = np.arange(xStart, xStop + xStep, xStep)
 | 
			
		|||
y1 = [h1(x_val) for x_val in x]
 | 
			
		||||
y2 = [h2(x_val) for x_val in x]
 | 
			
		||||
 | 
			
		||||
y3 = [kondnumb(x_val) for x_val in x]
 | 
			
		||||
# y3 = [kondnumb(x_val) for x_val in x]
 | 
			
		||||
 | 
			
		||||
plt.yscale('log', base=10)
 | 
			
		||||
plt.plot(x, y3, label='Konditionszahl')
 | 
			
		||||
# plt.yscale('log', base=10)
 | 
			
		||||
# plt.plot(x, y3, label='Konditionszahl')
 | 
			
		||||
plt.title('4.b)')
 | 
			
		||||
plt.legend()
 | 
			
		||||
plt.figure()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue