Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8436579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:12:56+00:00 2026-06-10T07:12:56+00:00

I am trying to replicate a functionality of a built-in function, as the built-in

  • 0

I am trying to replicate a functionality of a built-in function, as the built-in functionality is not callable inside scripts, but I can’t seem to figure out the how the 3rd parameter is calculated.

Basically you specify a and b and it returns c. So here is the result of some operations:

a   b   c

1   1   1
1   2   0.75
1   3   0.666667
1   4   0.625
1   5   0.6

2   1   0.75
2   2   0.5
2   3   0.416667
2   4   0.375
2   5   0.35
2   6   0.333333
2   7   0.321429
2   8   0.3125
2   9   0.305556
2   10  0.3

3   1   0.666667
3   2   0.416667
3   3   0.333333

4   1   0.625
4   2   0.375
4   3   0.291667
4   4   0.25

100 1   0.505
100 2   0.255
100 3   0.171667
100 10  0.055

Let me know if you need additional outputs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T07:12:58+00:00Added an answer on June 10, 2026 at 7:12 am

    For all of your sample the following formula provides the expected result:

    C = (A + B) / (2 * A * B)
    

    As ypercube pointed out in the comments this formula is the inverse of the Harmonic mean or the arithmetic mean of the inverses.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to replicate some of the functionality in Apple's avTouch, but I can't
Basically the functionality that I'm trying to replicate is the @reply system as it
I'm trying to replicate a UI like a gcalendar (only the layout not any
I am trying to replicate the functionality that users see when they go into
Has anyone successfully done this? Trying to replicate functionality similar to what is found
So I am trying to replicate Facebook's picture tagging functionality, and I have the
I am trying to replicate the exact functionality of this dialogue in Visual Studio
I am trying to replicate the functionality of the page below where there are
I am trying replicate auto-complete functionality that you find on the Google homepage. So,
I'm trying to figure out how to add some directshow capabilities to a C#

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.