可复现示例
示例输入length=8
width=5
height=3 预期结果 Volume: 120 cubic units
Formula: V = length × width × height
Substitution: 8 × 5 × 3 = 120
Surface area: 158 square units
Formula: A = 2 × (length × width + length × height + width × height)
Substitution: 2 × (40 + 24 + 15) = 158
Diagonal: 9.899494936612 units
Formula: d = √(length² + width² + height²)
Substitution: √(64 + 25 + 9) = √98 = 9.899494936612