Do while loop in calculated field
-
Hi
i am trying to create a form in which user will provide few inputs. based on which, form has to calculate required variable iteratively. so what i am trying:- creating a loop (do-while loop) to solve for required variable iteratively.
- it solve the equation after user click at the “calculate” button.
i have written the equation and its working as intended on local simple html page. but when i include it plugin calculate field and click at the calculate button. my browser become unresponsive.
please guide me how can i achieve the goals.
here is the code of loop including equation. before this loop i simply declaring the variable.do { Pcr=(Sigma*A)/(1+ec_over_r/COS(theeta*SQRT(old_force))); allowed_error= ABS(Pcr-old_force); old_force=Pcr; } while(allowed_error > 0.0001); return old_force;
Pcr is the variable i need to find. while old_force=1 in first iteration.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Do while loop in calculated field’ is closed to new replies.