|
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
|
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.
|
|
OK you math guys, what is the equation for finding your return on a investment that also had a contribution made to it.
Example: 2011 Roth bal on Jan. 1 2011 was $90,000, on Jan. 6th a $6,000 contribution was made which cannot be included in the real ...
Started by rustymutt on
, 20 posts
by 8 people.
Answer Snippets (Read the full thread at bogleheads):
See the "2011 Returns Thread" for more help and links with this.
There is this algorithm instead.
You need to use the XIRR() algorithm because there is no math equation that will do justice to this.
|
|
Have a look at the polynomial
It's Galois group is solvable, because it's based on permutations
(3 4 5)(6 8 7)
(1 2 9)(3 4 5)(6 7 8)
(1 2)(3 6)(4 8)(5 7)
(3 6 9)(1 4 7)(2 5 8)
So, the roots of this polynomial (unlike most polynomials with degree 9) can...
Started by Markelov on
, 4 posts
by 3 people.
Answer Snippets (Read the full thread at artofproblemsolving):
Insert to mathematica:
f[x_] := 256*x^9 + 1152*x^8 + 33408*x^7 - 865632*x^6 + 1187856*x^5 +
17590320*x^4 + 42581388*x^3 + 43229286*x^2 + 19905597*x + 3429500
NSolve[f[x] == 0, x]
to get the solutions:
{{x -> -8.03896 - 15.7691 I},
{x -> -8.03896... .
|
|
I wrote this scheme code to compute one solution of the quadratic equation a*x2 + b*x + c = 0
(define (solve-quadratic-equation a b c) (define disc (sqrt (- (* b b) (* 4.0 a c)))) (/ (+ (- b) disc) (* 2.0 a)))
However, someone told me that this procedure...
Started by dave on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
(define (solve-quadratic....
We can help ourselves by writing such an expression in the form
(+ (* 3 a square definelike so.
Quadratic-equation a b c) (define disc (sqrt (- (* b b) (* 4.0 a c)))) (/ (+ (- b) disc) (* 2.0 readily evaluate to be 57.
|