View Full Version : std. deviation and c programming
janey
Feb 2, 2004, 01:32 PM
i got stuck doing an assignment from my C class because I didn't know how the hell I would write a function that can calculate the standard deviation of an array of numbers...
(i know what standard deviation is, just not how to calculate it and stuff like that...)
Could anyone help? Language's gotta be C, supposedly there isnt a function in math.h that does the hard work for you...etc. etc.
bousozoku
Feb 2, 2004, 02:18 PM
Start with this:
http://www.symynet.com/educational_software/teaching_resources/Statistics/standard_deviation_formula.htm
janey
Feb 2, 2004, 02:20 PM
Originally posted by bousozoku
Start with this:
http://www.symynet.com/educational_software/teaching_resources/Statistics/standard_deviation_formula.htm
ooh thanks, I think i can do it now.
themadchemist
Feb 2, 2004, 02:22 PM
shouldn't you be taking chemistry and biology, like a good asian girl? :D :D :D :D :D
janey
Feb 2, 2004, 02:26 PM
Originally posted by themadchemist
shouldn't you be taking chemistry and biology, like a good asian girl? :D :D :D :D :D
**** man, I like chem and bio, but I prefer programming over those :)
besides, I dont know C (its freakin difficult and annoying though, everything I've learned so far) and I'd like to know it maybe it'll help me when i'm trying to relearn objective-c (doing it with prior knowledge of java isnt that useful).
MacCoaster from #macrumors convinced me into learning c# too...soooo....yeah....
themadchemist
Feb 2, 2004, 05:52 PM
Originally posted by übergeek
**** man, I like chem and bio, but I prefer programming over those :)
besides, I dont know C (its freakin difficult and annoying though, everything I've learned so far) and I'd like to know it maybe it'll help me when i'm trying to relearn objective-c (doing it with prior knowledge of java isnt that useful).
MacCoaster from #macrumors convinced me into learning c# too...soooo....yeah....
Son of Indian parents, here, I'm allowed to say that and not buy your crap. ;)You know what to do. Pre-med's in your GENES baby! Just kidding. I've always wanted to learn C++ and Java, but I haven't yet gotten around to it.
Maybe I'll fit it in sometime between being a good Asian. :D
Best of luck with the C. Wow, that's a similar phrase to one I used with ol' g30f (now a legend on these here threads), but it meant something quite a bit different there.
crenz
Feb 2, 2004, 06:23 PM
übergeek, learning additional languages is a good thing because the more languages you learn, the more you will learn about programming in general (as opposed to programming in a certain language).
However, once you've learned more about C and either Objective C or Java, I'd recommend to go for something vastly different. Try Scheme (or even Lisp) for some radically different concepts. Prolog is also fun to dabble with. Then, go and learn Perl :D .
Remember, it's not about learning languages that are hot in the industry. It's about learning how to learn languages (fast) by acquiring lots of different skills.
Dros
Feb 2, 2004, 06:45 PM
Originally posted by crenz
übergeek, learning additional languages is a good thing because the more languages you learn, the more you will learn about programming in general (as opposed to programming in a certain language).
However, once you've learned more about C and either Objective C or Java, I'd recommend to go for something vastly different. Try Scheme (or even Lisp) for some radically different concepts. Prolog is also fun to dabble with. Then, go and learn Perl :D .
Once I learned Perl I forgot everything I knew about programming. It was all hack and kludge after that. Of course, I still get lots more done with Perl!
janey
Feb 2, 2004, 10:22 PM
Originally posted by crenz
übergeek, learning additional languages is a good thing because the more languages you learn, the more you will learn about programming in general (as opposed to programming in a certain language)...(snip)
hehe gimme a break yeesh i just got started with high school...j/k
Well after i try to learn languages people are trying to get me to learn, I think ill try learning something fun :) ( i have brainf*ck and f*ckf*ck already sorta down though...just need practice :p i thought it would be bizarre to learn)
bousozoku
Feb 2, 2004, 10:33 PM
C really isn't so bad but there is a trend to code as little as possible and make it unintelligible without comments, if possible. On the other hand, my C code ends up with long names and explanations on what isn't obvious.
You'll get there. You can always ask about techniques.
Frohickey
Feb 2, 2004, 10:50 PM
Learning C is fine.
Whatever you do though, do not, and I repeat, DO NOT learn FORTRAN or COBOL.
If you learn FORTRAN or COBOL, the government will hunt you down, and put you into a deep freeze next to Walt Disney and you won't see the light of day until July 1, 2099.
:D
jefhatfield
Feb 2, 2004, 11:41 PM
Originally posted by Frohickey
Learning C is fine.
Whatever you do though, do not, and I repeat, DO NOT learn FORTRAN or COBOL.
If you learn FORTRAN or COBOL, the government will hunt you down, and put you into a deep freeze next to Walt Disney and you won't see the light of day until July 1, 2099.
:D
what about dos?
jefhatfield
Feb 2, 2004, 11:42 PM
actually, are you saying that people who had to take one of those, cobol or fortran, are old or something ;)
i know i am old, but not that OLD:p
bousozoku
Feb 3, 2004, 12:21 AM
Originally posted by Frohickey
Learning C is fine.
Whatever you do though, do not, and I repeat, DO NOT learn FORTRAN or COBOL.
If you learn FORTRAN or COBOL, the government will hunt you down, and put you into a deep freeze next to Walt Disney and you won't see the light of day until July 1, 2099.
:D
We still need COBOL (and RPG/IV) programmers. If not for them, we wouldn't know how much money is really out there. Those are the only languages that don't have to simulate money--they deal with it exactly.
janey
Feb 3, 2004, 12:42 AM
Originally posted by Frohickey
Learning C is fine.
Whatever you do though, do not, and I repeat, DO NOT learn FORTRAN or COBOL.
If you learn FORTRAN or COBOL, the government will hunt you down, and put you into a deep freeze next to Walt Disney and you won't see the light of day until July 1, 2099.
:D
fro what would you know about programming :P i thought you were an engineer...at a company...that we all love...:p
crenz
Feb 3, 2004, 05:02 AM
Originally posted by übergeek
hehe gimme a break yeesh i just got started with high school...j/k
Don't feel stressed :). Just wanted to get you interested in something that is quite different to Java/C#/Objective C :).
jefhatfield
Feb 3, 2004, 12:34 PM
Originally posted by bousozoku
We still need COBOL (and RPG/IV) programmers. If not for them, we wouldn't know how much money is really out there. Those are the only languages that don't have to simulate money--they deal with it exactly.
we still dont know:p
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.