1
$\begingroup$

I need help using Mathematica to determine the volume of an irregularly shaped triangular prism. I have very little experience with Mathematica but thought this task could easily be performed using the program.

The shape generated should look like:

Graphics3D[Prism[{{3.767, 4.523, 1}, {0, 0, 0}, {7.948, -2.451, 0}, {3.699, 8.156, 1}, {1.146, 10.24, 0}, {4.837, 10.24, 0}}]]

I've tried using the Volume[] function but with no luck. Any help would be greatly appreciated!

$\endgroup$
1
  • 1
    $\begingroup$ probably a version/os related issue. Volume[prism] works in version 12.1, does not in version 11.3. $\endgroup$
    – kglr
    Commented Apr 13, 2020 at 22:53

1 Answer 1

1
$\begingroup$

Using Volume should work:

Volume[
  Prism[{
    {3.767, 4.523, 1}, 
    {0, 0, 0}, 
    {7.948, -2.451, 0}, 
    {3.699, 8.156, 1}, 
    {1.146, 10.24, 0}, 
    {4.837, 10.24, 0}
  }]
]

24.0747

So the volume is 24.0747 cubic units.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.