|
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) * ...
Started by Ben Reeves on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
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... .
|
|
I'm trying to put together an app for fun that has a scenario where I need to figure out a probability equation for the following scenario:
Suppose I have a number of attempts at something and each attempt has a success rate (known ahead of time). What...
Started by byanity on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
So in general, given a finite sequence of events with probabilities P[i], the probability that at least one event is successful is 1 - (1 - P[0]) * (1 - P[1]) * ...... .
1 - .4 * .7 * .25
That is, find the probability that all attempts fail, and invert it .
|
|
Solve this equation for x, (1 + x)^4=34.5 . I am interested in the math libraries you'd use.
the equation is MUCH SIMPLER (1 + x)^4=34.5
thanks
Started by Andrei on
, 10 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
If you mean "find a value for double x that satisfies the equation to the limits "find an equation of the form 'x = ' such that x satisfies the given equation" (AKA "solve algebraically") then neither C nor C++ has....
Mean by "solve".
|
Ask your Facebook Friends
|
How to detect redundant equation from a system of nonlinear equation?
It means how to find out a system of nonlinear equation is "linear independence"?
One equation from the system can not be represented by the others in the system of nonlinear equation...
Started by gohkgohkgohk on
, 2 posts
by 2 people.
Answer Snippets (Read the full thread at physicsforums):
I'm afraid there's no general method of spotting a redundant equation.
Welcome gohkgohkgohk.
|
|
I'm analyzing financial data and would like to find the inflection points of a line. I know I can do this using derivatives, but first I need an equation. Is there are way to generate an equation based off of a series of numbers. I would need to do this...
Started by Arron on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Hi
I think curve fitting might help you.
Result in very weird curves if you try to fit it exactly .
|
|
Hello hello,
Im trying to figure out how i can solve an equation that has been stored in an array. I need some guidance on how to conquer such problem. here is my conditions
i have an array int X[30]; and in there i have stored my desired equation: 5+...
Started by Arcadian on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
C++ is an object-oriented 47 45 42) For example, your equation....
Do you need to honour correct
As you've discovered, an int array is a poor abstraction for an equation.
That sounds like a less than ideal way to represent an equation.
|
|
X+2y=8 , 2x+y=14 this are equations this is just example i gave for understanding . from this equation i like to find x,y values using c# program anybody help for me.how can implement this in program?...
Started by ratty on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
However as already....
Then you can use method like Solving Systems of Equations with Matrices ( for linear systems) Wiki also shows some different options.
You need to follow several steps:
You need to have a parser, to pass these two equations.
|
|
I need to solve a few mathematical equations in my application. Here's a typical example of such an equation:
a + b * c - d / e = a
Additional rules:
b % 10 = 0 b >= 0 b <= 100 Each number must be integer ... I would like to get the possible solution...
Started by Fabian on
, 11 posts
by 11 people.
Answer Snippets (Read the full thread at stackoverflow):
However, if the first equation is really....
Does this list help, but you can simplify the given equation to:
d = b * c * e with e != 0
Solving linear systems can.
Of_computer_algebra_systems
-Adam
This looks like linear programming.
|
|
I do not know if this is where I ask this/post this because I am new, however I have an excel chart in my Mathcad 15 equation sheet (I will convert it to a Mathcad table in alittle) and I want to create a for/while loop (or whatever) that can find an ...
Started by ptc-4605612 on
, 24 posts
by 3 people.
Answer Snippets (Read the full thread at ptc):
Th = # I want to then take this number and compare The driving parameter is temperature .
An excel chart in my Mathcad 15 equation sheet (I will convert it to a Mathcad table in alittle a number that a previous equation spits out.
|
|
I am looking to implement the simple equation:
i,j = -Q ± √(Q 2 -4PR) / 2P
To do so I have the following code (note: P = 10. Q = 7. R = 10):
//Q*Q – 4PR = -351 mod 11 = -10 mod 11 = 1, √1 = 1 double test = Math.sqrt(modulo(((Q*Q) - ((4*P)*R)))); // Works...
Started by AlexT on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Apache Math may help....
To satisfy ax 2 +bx+c("Equation has no roots"); } double tmp = Math.sqrt(b * b - 4 * a * c); double firstRoot = (-b + tmp this scenario).
The quadratic equation is more usually expressed in terms of a , b and c .
|