#include "MtxExpr.hpp"
#include "Math387.hpp"
#include "MtxIntDiff.hpp"
double __fastcall IntFun(
TVec*
const Parameters,
TVec*
const Constants, System::TObject*
const * ObjConst,
const int ObjConst_Size)
{
double x = (*Parameters)[0];
return Math.Sin(x);
}
void __fastcall Example();
{
double area = MonteCarlo(IntFun,0.0,
PI,NULL,NULL,65536);
// 2^16 random points in [0,PI] interval
}