Você está na página 1de 1

program_07

PROGRAM_07 - Monte Carlo estimate of


Integral x^p y^q
over an arbitrary triangle.
Define a triangle T:
Enter [ T.v1.x, T.v1.y]: [4,0]
Enter [ T.v2.x, T.v2.y]: [3,4]
Enter [ T.v3.x, T.v3.y]: [0,1]
Enter a random number seed: 123456789
Enter the power P for X^P: 4
Enter the power Q for Y^Q: 1
Enter the number of samples to generate: 1000
Estimated integral =

607.364430

PROGRAM_07
Normal end of execution.

Você também pode gostar