/********************************************************/ /* XPRD library example */ /* ==================== */ /* */ /* file piap.c */ /* ``````````` */ /* Example of use of XPRD: C version of piapprox.mos */ /* Calculations are performed by the Mosel models */ /* */ /* (c) 2011 Fair Isaac Corporation */ /* author: S. Heipcke, 2011, rev. Nov. 2018 */ /********************************************************/ #include #include "xprd.h" #define N 1000000 #define K 20 #define NEWSUM 2 const char *nodelist[]={"",""}; #define M (sizeof(nodelist)/sizeof(nodelist[0])) int main() { char msg[256]; XPRDcontext xprd; XPRDmosel moselInst[M]; XPRDmodel modPar[K],sender; int modct,nbfinished,i,j; int cls; double val; double mypi; xprd=XPRDinit(); for(i=0;i