Alternative and Simpler Formula for the RSI?

 

The well-known formula for the RSI is after some preparation:

   if(negative==0.0) RSIBuffer[i]=0.0;
   else RSIBuffer[i]=100.0-100.0/(1+positive/negative);

But I get the same results with this:

RSIBuffer[i] = 100.0 * positive /(positive+negative);
  1. No danger of division by zero as positive and negative must both be > 0 if there are valid quotes!
  2. 3 instead of 4 arithmetic operations.

Am I the first or did I make a mistake?

Files:
RSI.zip  10 kb
 
Carl Schreiber: Am I the first or did I make a mistake?

Neither