Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×

Comment Re:Make it core for Trig students (Score 1) 236

Because silly toy languages designed for novices are better to use to teach elementary concepts like variables, branching, and loops without having half the class bogged down in missed curly braces and semicolons. It is also much more instructive to come to the realization that goto is Considered Harmful after trying to hack up your own spaghetti code than it is to be insulated from it by a language that doesn't even have a goto, leaving you with only a vague and abstract notion of the virtues of measuring twice and cutting once.

Comment Re:Programming IS hard and boring (Score 2) 207

You know, any task done well should logically have this property, but for some reason you never hear about the years of kitchen catastrophes that go into making an innovative world-class chef, or years of grinding practice that make a gold-medal figure-skating or gymnastics routine. Maybe there really is an image problem that's bigger than we'd like to admit.

Comment Re:Fixed-point arithmetic (Score 3, Informative) 226

If you want exact results from a fixed number of significant bits, you want magic.

Whatever calculation you're making, be aware of the dynamic range of the intermediate results. Structure your calculations so that all intermediate results stay well within the dynamic range of the datatype. If you want to compute the standard deviation of 2048x2048 32-bit integers, use a 64 bit or 128 bit integer to compute the intermediate sum(x^2). If you try to use an IEEE double, you'll end up overflowing the 53 bits they give you because 2^11 * 2^11 * 2^32=2^54.

If you can, reformulate your calculation steps so to minimize the sensitivity to random errors on the order of a machine epsilon.

An electronic computer manual from UNIVAC/Boroughs/IBM written for pure mathematicians in ~1953 will tell you the same thing.

Comment It's already happening (Score 1) 232

Check out the international GNSS service: http://igscb.jpl.nasa.gov/ This is a NASA-run program that simultaneously monitors GPS and GLONASS signals all over the world for scientific purposes. Not the same as an official ground control station, but it's not fair to say this would be breaking entirely new ground.

Slashdot Top Deals

When bad men combine, the good must associate; else they will fall one by one, an unpitied sacrifice in a contemptible struggle. - Edmund Burke

Working...