I'm trying to use the Wilks coefficient formula (https://en.wikipedia.org/wiki/Wilks_coefficient) in my survey using the math operations function.
The formula is:
x is the body weight of the lifter in kilograms.
Values for men are:
- a = −216.0475144
- b = 16.2606339
- c = −0.002388645
- d = −0.00113732
- e = 7.01863× 10 ^ −6
- f = −1.291 × 10 ^ −8
The green part is working correctly (it's calculating the total lifted weight, which has to be multiplied by the Wilks coefficient) The red part, which is the Wilks coefficient formula gives "{invalid espression}" as result.
The code in text form:
$e{ ( q://QID7/ChoiceTextEntryValue/1 * 100 / q://QID7/ChoiceTextEntryValue/2 + q://QID7/ChoiceTextEntryValue/3 * 100 / q://QID7/ChoiceTextEntryValue/4 + q://QID7/ChoiceTextEntryValue/5 * 100 / q://QID7/ChoiceTextEntryValue/6 ) * 500 / ( ( −216.0475144 ) + 16.2606339 * q://QID6/ChoiceTextEntryValue + ( −0.002388645 ) * q://QID6/ChoiceTextEntryValue ^ 2 + ( −0.00113732 ) * q://QID6/ChoiceTextEntryValue ^ 3 + 7.01863 * 0.000001 * q://QID6/ChoiceTextEntryValue ^ 4 + ( −1.291 ) * 0.00000001 * q://QID6/ChoiceTextEntryValue ^ 5 ) }
q://QID6/ChoiceTextEntryValue is x
I've failed to locate the source of the issue, any ideas?