Post Reply 
[VA] SRC#005- April, 1st Mean Minichallenge
04-10-2019, 12:10 AM
Post: #11
RE: [VA] SRC#005- April, 1st Mean Minichallenge
      
Hi, Albert Chan:

(04-07-2019 12:01 AM)Albert Chan Wrote:  The case for k=0 doesn't fit quite right, getting meaningless result, M0 = 1^∞
I had to convince myself this work for Geometric Mean.

Good explanation. Though the code has to include the Geometric Mean as an special case to avoid the 1^∞ you mention, the generalized formula does actually work for values of k approaching from both sides. For instance, using my original solution we get:

      >RUN
            ? 1.999999   ->   4.3224 57 34930    {  M1.999999 (general case)  }
            ? 2          ->   4.3224 71 15132    {  M2 (special case = Geometric Mean)  }
            ? 2.000001   ->   4.3224 78 34444    {  M2.000001 (general case)  }

V.
.

  
All My Articles & other Materials here:  Valentin Albillo's HP Collection
 
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [VA] SRC#005- April, 1st Mean Minichallenge - Valentin Albillo - 04-10-2019 12:10 AM



User(s) browsing this thread: 1 Guest(s)