Message Boards Message Boards

GROUPS:

Integrating over a 3D ExampleData shape?

Posted 1 month ago
342 Views
|
2 Replies
|
0 Total Likes
|

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

2 Replies

Maybe something like this?

NIntegrate[1, Element[{x, y, z},
  DiscretizeGraphics@ExampleData[{"Geometry3D", "Beethoven"}]]]
Posted 1 month 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"]]
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