|
It simply returns the positive result, if the input is negative it returns a NaN which can be detected with IsNan. Is that what you were looking for?
|
|
|
|
|
LOL, of cause not i am looking for the source code of sqeare root method. but thank u any way
|
|
|
|
|
Bisection and Newton-Raphson are commonly used algorithms for this.
|
|
|
|
|
and where can i find them??
|
|
|
|
|
Took me under 10 seconds, but if you're too stupid to use google, it's unlikely you'd be able to understand them.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
i wrote in my first message that i was looking for the source code of Sqrt() method.
Brian Gideon wrote me the names of the algorithm he knows, so i asked him where can i find them because i expected to find the source code of this algorithms too.
first: i did not ask you.
second: what are you doing here if can find everything in google.
third: think before you want to write something.
fourth: never write stuipid to the people u do not know, got this
i think that u would never say something like this to someone directly, cause this someone would break u f***in face for this ... . got this
have your sickness any name?
|
|
|
|
|
u r ? damn ass ? ( I think you mean dumb ass ) ur ? cause ? ( I think you mean because )
I see I underestimated your stupidity. How did you figure out how to turn your computer on ? Or do people in the sheltered workshop help you ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
I love it when weak minded pussies edit their posts to change completely what they said. I should have recognised you for a wimp and quoted you in my reply.....
oOomen wrote:
so i asked him where can i find them because i expected to find the source code of this algorithms too.
Yeah, which makes you an idiot. All you need to do is google. If you can't turn any of the explanations I found in seconds into source code, then you should not be let near anything that resembles source code, you should go and try to work out HTML or something instead.
oOomen wrote:
first: i did not ask you.
You asked on a public forum
oOomen wrote:
second: what are you doing here if can find everything in google.
Helping people who ask questions that are not so easy to google. And advising idiots like you to search for yourself.
oOomen wrote:
third: think before you want to write something.
Most people who read my articles here think that I do. Why don't you try thinking at all ?
oOomen wrote:
fourth: never write stuipid to the people u do not know, got this
Every post you make convinces me further of your stupidity.
oOomen wrote:
i think that u would never say something like this to someone directly, cause this someone would break u f***in face for this
Well, I guess you don't know me that well.
oOomen wrote:
have your sickness any name?
Yeah, sick of idiots.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
save ur remarks for u cause u need it ok
|
|
|
|
|
you have to learn how to recognize in the cases like this that you are wrong!
|
|
|
|
|
Bwhahahahahahahahahahaaa !!!
It's amazing, there's 670 THOUSAND members on this site, and yet I've managed to find the stupidest one, on the C# forum. I don't recall anyone on the C++ forum ever being this dumb. I feel everything I ever said about C# and .NET is being proved before my eyes......
C'mon, post more poorly spelled half sentences. In the meantime, I'm going to read your profile to verify my suspicion that you're 12 or under.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
What made you decide to say this instead of
URL : http://www.codeproject.com/script/comments/forums.asp?msg=653169&forumid=1649#xx653169xx
From: oOomen
be a man, not a sh*t!
the think i see it that u r real swine with the sick head, so go to your doctor stupid idiot, but i think it is a hopeless case for u.[laugh]
????
You weak, worthless pussy. Why are you still posting on this ? You made an idiot of yourself, now live with it.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Don't judge all C# developers by a few people. Also, I've seen some pretty moronic people on the C++ forums, too.
"Blessed are the peacemakers, for they shall be called sons of God." - Jesus
"You must be the change you wish to see in the world." - Mahatma Gandhi
|
|
|
|
|
Hey, don't get me wrong. There are problems with C#, although some of the major ones are being fixed, they should have been in the first release ( generics are a major one ). However, I use it every day at work, and it certainly has pluses over C++, as well as minuses. I was more referring to the marketing of C#/.NET being designed to appeal to the lowest common denominator, and therefore to attract morons. There are good programmers and bad ones in every language, but the ratio differs. I'd prefer my chances of finding a good C++ to a good VB programmer, for example. C#, I'm not sure yet where the ratio will sit. I sure hope it sits with us, and not with this other guy......
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
pretty moronic dude you can see in the mirror, too
|
|
|
|
|
The answer you imagine to have managed, is always quite close to you.
It's lights, which comes in your eyes after it was reflected from your body.
good luck and have a nice day
|
|
|
|
|
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Square+Root+Algorithms
|
|
|
|
|
Hi every body!
My app has 1 array which consists of 3 comboboxes, each comboBox of the array uses the same comboBox_ChangedItem(object sender, System.EventArgs e) method.
When those ComboBox are Changed item, How can I know which combobox was changed? (I mean how can I get index of changed combo in the Array?)
Thanks!
xyz
|
|
|
|
|
I imagine, the way u doit is not a good way to solve ur porblem!
<br />
for(int i = 0; i < 3; i ++) if(comboboxarray[i] == (ComboBox)sender) break; <br />
put it in ur methode.
only 3 ComboBox have to use this comboBox_ChangedItem method in other case it does not work.
|
|
|
|
|
You can take the sender, and check it's uniqueID against those of your comboboxes, and work it out that way. Or if you want to use the combobox for something in the method, just do this:
ComboBox myCombo = sender as ComboBox;
Hey presto, do whatever you want with myCombo, it's the one that was selected.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
he wanted to get the index of an array.
could u just read his question first and think befor u write an answer. thanks.
|
|
|
|
|
I'm sorry, I was so busy thinking about how stupid you are while I read your answer, that I did in fact forget the specifics of the question. Now, one more thing.
Shut up and die.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Christian Graus wrote:
Shut up and die
, planning on any new articles, what happened to the one you sent to the developer's journal or was that Dr Dobbs. I guess it was a very long time back.
Regards,
Kannan
|
|
|
|
|
I'm currently learning lots of ASP.NET here at work, and so hopefully I'll learn some things that I can write articles on. I've sure had to work out some stuff I couldn't find here, although as soon as I write an article, I'm sure I'll be told it's here already
It was Dr Dobbs and no, they never contacted me or answered any of the numerous emails I sent them. If they ever published those articles, I sure didn't get paid, and with the VC6 being hopelessly out of date now, the one on namespaces is also out of date, at least in the talk of compiler coverage. I hate Dr Dobbs.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
You can search the array:
index = System.Array.IndexOf( sender );
|
|
|
|