added all files reserch

This commit is contained in:
Danamir
2025-12-03 08:59:14 +03:00
parent a592701a3c
commit bdcf20478e
15 changed files with 1051 additions and 0 deletions

16
7-1.py Normal file
View File

@@ -0,0 +1,16 @@
import numpy as np
import matplotlib.pyplot as plt
# Define the dimensions of the trapezoid
base1 = 5
base2 = 3
height = 4
# Plot the trapezoid
trap_points = np.array([[0, 0], [base1, 0], [base1, height], [0, height]])
plt.fill(trap_points[:, 0], trap_points[:, 1], color='gray')
# Show the plot
plt.axis('scaled')
plt.show()