|
glennPattonWork wrote: Hmm...(2-5/2) = -1.5, (3-5/2) = -1 Speaking of new math, I was always under the impression that 2-5/2 = -.5 and 3-5/2 = .5 ...
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill
America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde
Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
|
|
|
|
|
Maff's is all mumbo jumbo!
|
|
|
|
|
Edit: You can't expect me to do algebra this early on a Monday morning.
Wait, it's the afternoon already?
Well, at least it's not Tuesday yet.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
modified 15-Oct-13 10:00am.
|
|
|
|
|
I don't know, I studied in France.
Anyway, in this part of the world, (a-b)^2 = a^2 + b^2 - 2ab.
If a=2 and b=5/2, (a-b)^2 = 4 + 25/4 + 2*2*5/2=4 + 25/4 + 10
If a=3 and b=5/2, (a-b)^2 = 9 + 25/4 + 2*3*5/2=4 + 25/4 + 15
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
These Brits sure are bad at math today...
Rage wrote: in this part of the world, (a-b)^2 = a^2 + b^2 - 2ab. As far as I know, that is true in all parts of the world...
The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill
America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde
Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin
|
|
|
|
|
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
good edit !
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
Simple!
int bM = int.MaxValue, bm = int.MinValue;
Console.WriteLine("Min/Max: {0}/{1}, -Min/-Max: {2}/{3}", bm, bM, -bm, -bM);
will print
Min/Max: -2147483648/2147483647, -Min/-Max: -2147483648/-2147483647
As you can see, int.Min == -int.Min (because there is just not enough positive integer!! )
Further, as far as int arithmetic is concerned:
1080000000 x2 = -2134967296
Morale of the story?
Don't overflow!
use checked() block? as in:
int bM = int.MaxValue, bm = int.MinValue;
int bm2;
checked
{
bm2 = -bm;
}
modified 15-Oct-13 8:58am.
|
|
|
|
|
I like Mark's answer better.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
It does have to do with int.MinValue, but 1080000000 * 2 = -2134967296 (in int arithmetic), and the math is done in doubles.
|
|
|
|
|
Because int overflows at 2147483648 and -2147483648 = 2147483648. The random number must be >= 0.98841 for the loop to break which will get hit quickly. For the first one, the random number must be > 1 which won't ever happen.
|
|
|
|
|
In my doctor's waiting room there is a screen with a rolling health-based infomercial. In it there is a notice saying that people are allowed a free shingles vaccination on the NHS if they are aged 70 or 79.
Your starter for ten is: why those two ages, and why just those two ages? Why not 70 to 79? Why not 70 or 80?
I is confused.
|
|
|
|
|
viaducting wrote: I is confused.
The NHS itself is sometimes confused.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
|
|
|
|
|
There is always a catch to freebies.
By the time the receptionist answers the phone... happy birthday, that'l be £7.90.
|
|
|
|
|
|
IIUC, I guess those aged 71 are pretty f***ed up if they stick to the 70/79. I mean, should I really wait 8 years to get the vaccine ?
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
The bit that worries me is the "It's perfectly safe" comment - this coming from a government agency makes me assume that it is a form of euthanasia...
The only instant messaging I do involves my middle finger.
English doesn't borrow from other languages.
English follows other languages down dark alleys, knocks them over and goes through their pockets for loose grammar.
|
|
|
|
|
Shingles is caused by the same virus as chickenpox; it just manifests itself much more severely as you get older. AFAIK the vaccine is the same one that you give your kids so you can put your tin foil hat away.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
There is a huge number of people in their 70's. An example is that there are over 4 million people in their 70's who still hold UK driving licenses, and that number I suspect is a proportion of those in their 70's. So I guess it would be a difficult to plan and organise for that number in any one year let alone how expensive it would be to vaccinate them all.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
I perfectly understood that. I was merely pointing out that the people aged 71 will have to wait 8 years to get their vaccine. Which at 71, can be quite long.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
modified 15-Oct-13 8:22am.
|
|
|
|
|
At this sort of age, a lifetime.
|
|
|
|
|
Rage wrote: will have to wait 8 years to get their vaccine. Which at 71, can be quite long.
Yes, I agree. And from this [^] a higher rate in the 70 age group could suggest that the NHS is wrong to discriminate those aged between 71 and 78.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Yes, I saw this recently and am equally confused about it.
Veni, vidi, abiit domum
|
|
|
|
|
That is confusing because I got a shingles vaccination last year!
|
|
|
|
|
Where the hell is V?
You always said it couldn't happen here... Then one day we woke up and we were living in a Fascist state.
Anything that is unrelated to elephants is irrelephant Anonymous ----- Do not argue with an idiot. He will drag you down to his level and beat you with experience Greg King ----- I always wanted to be somebody, but now I realize I should have been more specific. Lily Tomlin, Actress
|
|
|
|