|
I have two simple while loops in my program that I feel ought to be math equations, but I'm struggling to convert them:
float a = someValue; int b = someOtherValue; int c = 0; while (a <= -b / 2) { c--; a += b; } while (a >= b / 2) { c++; a -= b...
Started by Sydius on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Assuming b is positive, abs(c) = floor(....
I think you want something like this:
c = ((int) a + b / 2 * sign(a)) / b
That should match your loops except for certain cases where b is odd because the range from -b/2 to b/2 is smaller than b when b is odd .
|
|
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):
You need to use the XIRR() algorithm because there is no math equation that will do justice with this.
|
|
Math Equation help plsss 10 pointssss? True or false
A line with a negative slope rises to the right
A line with a positive slope is always very steep
The y-intercept of a line is the point where the line crosses the x-axis
Started by Bebo malotra on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at yahoo):
Ex: http://www.crctlessons.com/images/y-inte… false, false, and false.
The y intercept is the point where the line crosses the y intercept .
False..
The steepness depends on the slope.
False..
It drops to the right.
False False False False.
|
Ask your Facebook Friends
|
Math Sequence Equation? Help!(10 pts. best answer)? It is very difficult for me to know what are the equations that best describe these sequence of numbers. I know you can give the equation that describes the sequence. So here it is:
1) 1 , 3 , 5 , 7....
Started by James Peterburg on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at yahoo):
Just give up on Maths if you don't know how to do something this easy.
Y=1/2 x Lazy...
Y=1/(2x)
10.
Y=-4(x-1)
9.
Y= 2(x-1)+1
7.
|
|
Right now there is no easy way to search for math equations. Single line entry using carrots, slashes, and lots of parenthesis will only get you so far. What is needed is an equation editor for Google search entries. Has this been considered by Googl
Started by JJ TX on
, 9 posts
by 7 people.
Answer Snippets (Read the full thread at google):
I found my favorite using Google to find the site ... .
The site is free and can answer any math problem http://www.analyzemath.com.
In the past what they expected.
The below referenced ones).
I hope you've read Google help articles (ex.
|
|
“Part 2: EMR Wavelengths: For each of the following frequencies of electromagnetic radiation, find the EMR wavelength and identify the part of the electromagnetic spectrum in which the radiation falls.”
I am given a frequency of 37 GHz.
1 Billion GHz=...
Started by dkellerm on
, 4 posts
by 2 people.
Answer Snippets (Read the full thread at mymathforum):
Here's an example that should help:
What is the frequency of EMR with a wavelength of 3.78 X 10^-16 spectrum.
|
|
I'm struggling with a math problem.
I thought I would check in with the NT's about it.
The problem is grouped under equations with 3 unknown.
Namely x, y and z.
So far I've been able to deal with problems of that nature,
but with this I don't even know...
Started by hornet on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at personalitycafe):
How much fat did they consume? You're told the total is 14.8 g for each litre Alma drank) + (39 g... .
I love how a math problem automatically gets posted to the rational forums of math and the unknown variables.
A typo setting 12,5 to 19,5.
|
|
I'm struggling with a math problem.
I thought I would check in with the NT's about it.
The problem is grouped under equations with 3 unknown.
Namely x, y and z.
So far I've been able to deal with problems of that nature,
but with this I don't even know...
Started by hornet on
, 9 posts
by 6 people.
Answer Snippets (Read the full thread at personalitycafe):
Originally Posted by hornet Should....
Should fat, protein and energy each have their own equation?
Like Type A:
15X + Y + 39Z = 14,8 Would it help if you put the three variables as a common? Like when you do optimizations.
Protein, and energy.
|
|
I'm struggling with a math problem.
I thought I would check in with the NT's about it.
The problem is grouped under equations with 3 unknown.
Namely x, y and z.
So far I've been able to deal with problems of that nature,
but with this I don't even know...
Started by hornet on
, 10 posts
by 5 people.
Answer Snippets (Read the full thread at personalitycafe):
ENTJs don't.
Go to Yahoo! Answers or a study group if you need help with your homework.
This thread is stupid.
|
|
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):
Does this list help, but you can simplify the given equation....
Stackoverflow.com/questions/160911/symbolic-math-lib , the answers to which are mostly as relevant_of_computer_algebra_systems
-Adam
This looks like linear programming.
|