i have a formula, it is basically the result of two other previous calculations and it gives me an eror message saying that i cant use it as a function
ERRORC = (( target1 ) - ( OUTC ) )(OUTC)(1 - OUTC);
target one is selected at the start.
if ( pattern == 1 )
{
target1 = 1;
target2 = 0;
}
and outC is calculated
OUTC = 1/(1 + pow(e, -((WAC * OUTA) + (WBC * OUTB))));
e is 2.718281828
and the other variables have been set up earlier.
target1 and outc are set up as floats.
thanks in advance.