It's not my fault images are broken. Here's the link:
https://imgur.com/pIV4pPZ
Python Code (put it into GPT to format it correctly)
import pandas as pd
# Updated mass, average force, and max force values
positions_with_details = {
"CB": (191, 76, 96),
"WR": (197, 76.5, 95),
"S": (206, 73.5, 94),
"RB": (217, 76, 92),
"QB": (220, 51.3, 91),
"WLB": (237, 71, 89),
"SLB": (241, 72, 88),
"FB": (243, 53.5, 88), # Heavier fullbacks
"MLB": (245, 66.7, 88),
"TE": (257, 61.8, 87), # Heavier tight ends
"DE": (276, 66, 84),
"C": (283, 73.5, 83),
"DT": (300, 59.5, 80),
"LG": (308, 51.6, 79),
"LT": (312, 58.2, 79),
"RG": (316, 54.7, 78),
"RT": (320, 57.3, 77)
}
# Define offensive and defensive players
offensive_positions = ["WR", "RB", "QB", "FB", "TE", "C", "LG", "LT", "RG", "RT"]
defensive_positions = ["CB", "S", "WLB", "SLB", "MLB", "DE", "DT"]
# Initialize matrices for required force values (to match average and max forces)
required_force_avg_matrix = pd.DataFrame(columns=defensive_positions, index=offensive_positions)
required_force_max_matrix = pd.DataFrame(columns=defensive_positions, index=offensive_positions)
defensive_force_avg_matrix = pd.DataFrame(columns=offensive_positions, index=defensive_positions)
defensive_force_max_matrix = pd.DataFrame(columns=offensive_positions, index=defensive_positions)
# Fill the matrices with the corresponding force values
for off_pos, (off_mass, _, _) in positions_with_details.items():
if off_pos in offensive_positions:
for def_pos, (def_mass, def_avg_force, def_max_force) in positions_with_details.items():
if def_pos in defensive_positions:
# Required force to match average defensive force
f2_avg = (def_avg_force / def_mass) * off_mass
required_force_avg_matrix.loc[off_pos, def_pos] = f"{f2_avg:.2f}"
# Required force to match max defensive force
f2_max = (def_max_force / def_mass) * off_mass
required_force_max_matrix.loc[off_pos, def_pos] = f"{f2_max:.2f}"
for def_pos, (def_mass, _, _) in positions_with_details.items():
if def_pos in defensive_positions:
for off_pos, (off_mass, off_avg_force, off_max_force) in positions_with_details.items():
if off_pos in offensive_positions:
# Required force to match average defensive force
f2_avg = (off_avg_force / off_mass) * def_mass
defensive_force_avg_matrix.loc[def_pos, off_pos] = f"{f2_avg:.2f}"
# Required force to match max defensive force
f2_max = (off_max_force / off_mass) * def_mass
defensive_force_max_matrix.loc[def_pos, off_pos] = f"{f2_max:.2f}"
# Display the required force matrices
print("Required Acceleration to Match Average Acceleration of Defensive Players:")
print(required_force_avg_matrix)
print("\nRequired Acceleration to Match Max Acceleration of Defensive Players:")
print(required_force_max_matrix)
print("Required Acceleration to Match Average Acceleration of Offensive Players:")
print(defensive_force_avg_matrix)
print("\nRequired Acceleration to Match Max Acceleration of Offensive Players:")
print(defensive_force_max_matrix)
Last edited at 2/13/2025 7:07 pm