Rectangular Prism Volume Calculator

Compute rectangular prism volume V = l·w·h and surface area from length, width and height.

📐 計算公式
長方體四要素(本頁程式碼口徑):V=l×w×h(m³);表面積 A=2×(lw+wh+hl)(m²);稜長總和=4×(l+w+h)(m);體對角線=√(l²+w²+h²)(m)。校驗:三項空值即提示;長、寬、高不得為負(0 合法)。判據:無固定分級,正方體(l=w=h)時體對角線=√3×邊長、表面積=6×邊長²,體對角線恒大於任一稜。

輸入長、寬、高,求長方體體積與表面積。

📦 常見長方體體積參考(體積 V、表面積 A、體對角線 d)

Formula & Standard References

Item Formula / Note Source / Standard
Rectangular prism volumeV = l·w·hSolid geometry
Surface areaS = 2(lw + lh + wh)Surface area formula
Space diagonald = √(l² + w² + h²)3D Pythagorean
Cube caseV = a³ when equalDegenerate case
Capacity1 m³ = 1000 LLegal units
UnitsCubic length unitsDimensional rules
📌 計算說明
  • V=lwh,A=2(lw+wh+hl)。
  • 4×3×2 → V=24,A=52。