Hey guys i am having a small problem with this calculation in bold:
amtwon = (pow(pbet,2) / pow(pbet,2-100 *pbet)) ;
amtlost = ( 0.35 * pbet);
totalwin = (amtwon - amtlost);
this is the block of code.the problem is amtwon totalwin is supposed to return a value of 23.993.18 but i am seeing 1.# inf when calculated what the heck am i doing wrong.
mind you i multiplied the pbet variable by it self and it worked...ps i am using "double" for all these values