@@ -284,7 +284,7 @@ Let's see another example:
284284 public:
285285 constexpr CylindricalStorageTank(const quantity<si::metre>& radius,
286286 const quantity<si::metre>& height) :
287- StorageTank(std::numbers::pi * pow<2>(radius), height)
287+ StorageTank(pow<2>(radius) * π , height)
288288 {
289289 }
290290 };
@@ -341,8 +341,7 @@ Let's see another example:
341341 public:
342342 constexpr CylindricalStorageTank(const quantity<isq::radius[si::metre]>& radius,
343343 const quantity<isq::height[si::metre]>& height) :
344- StorageTank(quantity_cast<horizontal_area>(std::numbers::pi * pow<2>(radius)),
345- height)
344+ StorageTank(quantity_cast<horizontal_area>(pow<2>(radius) * π), height)
346345 {
347346 }
348347 };
@@ -395,7 +394,7 @@ Let's see another example:
395394 public:
396395 constexpr CylindricalStorageTank(const quantity<si::metre>& radius,
397396 const quantity<si::metre>& height) :
398- StorageTank(std::numbers::pi * pow<2>(radius), height)
397+ StorageTank(pow<2>(radius) * π , height)
399398 {
400399 }
401400 };
@@ -454,8 +453,7 @@ Let's see another example:
454453 public:
455454 constexpr CylindricalStorageTank(const quantity<isq::radius[si::metre]>& radius,
456455 const quantity<isq::height[si::metre]>& height) :
457- StorageTank(quantity_cast<horizontal_area>(std::numbers::pi * pow<2>(radius)),
458- height)
456+ StorageTank(quantity_cast<horizontal_area>(pow<2>(radius) * π), height)
459457 {
460458 }
461459 };
@@ -565,8 +563,7 @@ class CylindricalStorageTank : public StorageTank {
565563public:
566564 constexpr CylindricalStorageTank(const quantity< isq::radius[m] > & radius,
567565 const quantity< isq::height[m] > & height) :
568- StorageTank(quantity_cast<horizontal_area>(std::numbers::pi * pow<2>(radius)),
569- height)
566+ StorageTank(quantity_cast<horizontal_area>(pow<2>(radius) * π), height)
570567 {
571568 }
572569};
0 commit comments