Divergence Theorem Example: Calculating Both Sides (part 2 - Numerical Calculation)

preview_player
Показать описание
Here is an example of the divergence theorem for a vector field and a cube. In this example, I'm using a Monte Carlo calculation to find both the volume and surface integrals using python.

Here is the code

Here is part 1 - same problem but with an analytical solution.
Рекомендации по теме
Комментарии
Автор

Shouldn't the divergence be: 2(xy + x + z) ?

fizixx