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 612305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:52:43+00:00 2026-05-13T17:52:43+00:00

I have the following C formula bucket = (hash – _min) * ((_capacity-1) /

  • 0

I have the following C formula

bucket = (hash - _min) * ((_capacity-1) / range());

What I need to to rearrange the equation to return the _capacity instead of bucket (I have all other variables apart from _capacity). e.g.

96 = (926234929-805306368) * (( x -1) /1249540730)
836 = (1852139639-805306368) * ((x -1) /1249540730)

As you can see it’s a fairly simple equation, all I need is x on the left. But my algebra is very rusty, so any help appreciated.

  • 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-05-13T17:52:43+00:00Added an answer on May 13, 2026 at 5:52 pm
    capacity = (range() * bucket) / (hash - _min) + 1;
    

    bucket = (hash - _min) * ((_capacity - 1) / range()); // start
    bucket = ((hash - _min) * (_capacity - 1)) / range(); // rearrange
    range() * bucket = (hash - _min) * (_capacity - 1); // multiply by range
    (range() * bucket) / (hash - _min) = _capacity - 1; // divide by (hash - _min)
    (range() * bucket) / (hash - _min) + 1 = _capacity; // add 1
    capacity = (range() * bucket) / (hash - _min) + 1; // rearrange
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code inside a loop: Range(N & i + 1).Formula =
I have the following formula that works out the value of all the rows
In Excel, I have the following formula =(MIN(H69,H52,H35,H18)*(1/H18))*10 that is supposed to return the
I have the following requirement in Excel but now sure the formula I need
I have the following formula float mean = (r+b+g)/3/255.0f; I want to speed it
I have the following formula: =ArrayFormula(SUM(Morten!$M4:$M400)) How can I replace Morten with the contents
we have an interesting formula to figure out. First, we count the following, where
I have following script that executes all the .reg files in the current directory.
I have the following formula in LaTeX, based on Fisher's Exact Test . (
I have the following in my formula field: toText(((Sum ({DataTable1.Ending_Value}, {DataTable1.Name})) - (Sum ({DataTable1.Starting_Value},

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.