Analog Input. In this example we use a variable resistor (a potentiometer or a photoresistor), we read its value using one analog input of an Arduino or Genuino board and we change the blink rate of the built-in LED accordingly. The resistor's analog value is read as a voltage because this is how the analog inputs work.
For the Haigis formula, the a0 constant moves the power prediction curve up, or down, in much the same way that the SRK/T A-constant. The a1 constant is tied to the measured anterior chamber depth and the a2 constant is tied to the measured axial length.
% Input Varibles g = input('guess how many times'); % Constant Varibles n = randi ([1, 11]); max_21 = 21; % Calculate Running Sum. for a=n sum = sum + a; if sum>21 disp (sum) else sum = sum + a; end end. What I want it to do is loop throgh the random integers and create a running sum.