Message Boards Message Boards

Integrating over a 3D ExampleData shape?

Hi, I am a new student with Mathematica. I would like to ask something : there is an exercise we were doing in class and I did not understand well. Can I get help?

NIntegrate[ExampleData[{"Geometry3D", "Beethoven"}] 1, {x, y, z}]
Integrate[Sin[x], x]

How do I get the answer using this?
enter image description here

POSTED BY: Salmon UULENGA
2 Replies
Posted 2 years ago

Or this which gives the same result, but disagrees with what is shown as the correct answer: 872.56

NIntegrate[1, {x, y, z} ∈ ExampleData[{"Geometry3D", "Beethoven"}, "Region"]]
POSTED BY: Rohit Namjoshi

Maybe something like this?

NIntegrate[1, Element[{x, y, z},
  DiscretizeGraphics@ExampleData[{"Geometry3D", "Beethoven"}]]]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract