the trailboss abuses his CodeRanch power for his other stuff (power corrupts. absolute power corrupts absolutely is kinda neat!)
permaculture light bulbs permaculture electric heat permaculture cast iron permaculture wood burning stove permaculture solar food dehydrators
The moose likes Meaningless Drivel and the fly likes Measurements and significant figures Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Other » Meaningless Drivel
Bookmark "Measurements and significant figures" Watch "Measurements and significant figures" New topic
Author

Measurements and significant figures

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

I just read Markcc's blogpost on significant figures.

I have a question that I hope javaranchers can help me out.


if you've got a measured value of 2.42532, with six significant figures, and you need to round it to 3 significant figures ...


In scientific experiments, how do you actually perform a measurement to a specific precision (in the case above, 6 sigfigs) ?
Is this possible only scientific equipment ? e.g. If I buy a simple plastic ruler from a book store, how do I know what precision I have at my disposal ?

Regards,

Pho
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

If you have one mark every 30cm, you can measure the numbers 0 to 30 (1 to 2 sigfigs)
If you have millimeters, you can measure 301 values from 0.0 to 30.0 (2 to 3 sig figs)
The better the graduation on the rule and your ability to read those values, the more significant your measurements will be.
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

Pho Tek wrote: If I buy a simple plastic ruler from a book store, how do I know what precision I have at my disposal ?

The number of digits is controlled by two things: the tool used to measure, and the skill of the person making the measurement.

If the ruler has markings for each millimeter, then the finest measurement will be in millimeters. If you are measuring a distance of 1.234 meters, you have three significant digits. (it had better be a long ruler).

Its more complicated, as a really cheap ruler may not actually measure in meters/millimeters, but some error number (assume it is 50% off) then you will write done a lot of significant digits from your measurement, but few (none?) are accurate.

Someone with a good rule, good eyes, and skill may be able to see that rather than being about ten millimeters long, its really a bit longer, and so they can write down 10.2 milimeters. This means that there are two significant digits. The "2" may be wrong, but its much more likely to be 1 or 3, and its unlikely to be 10.7
Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

Thanks @David @Pat.

How do you learn such things ?
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

I was taught most of this in freshman Engineering. Nearly four decades ago. This was back when engineers used slide rules, and you had to understand significant digits. If you were good, you could get as much as three and a half digits out of a good slide rule.

Later, when I was interning at an Engineering firm, the basic four function calculators came out. I forget how expensive they were, but they were so expensive that in a department with 15 engineers and maybe 20 draftsmen, we had two.

We also had a Korean Engineer who used an abacus. So naturally, we had a race. Calculator vs abacus.

The guy with the abacus won.
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18552
    
  40

Is this possible only scientific equipment ? e.g. If I buy a simple plastic ruler from a book store, how do I know what precision I have at my disposal ?



I had to do something similar back in college. For a chemistry lab, we have to report the precision of all measurements. But many of the measurements were just temperatures -- how do you report the precision of a thermometer?

In the end, I just got all the lab partners to report the temperature as best as he/she could. The official recorded temperature was the mean (along with the standard deviation) of all the sampled readings.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Bert Bates
author
Sheriff

Joined: Oct 14, 2002
Posts: 8806
    
    5
Once you've figured this out, you can determine how long the coast of England is...


Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

Aren't all coastlines fractal?
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11175
    
  16

Wikipedia has a decent article on sig figs.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
permaculture playing cards
 
subject: Measurements and significant figures
 
Similar Threads
Precision loss in String to Float and double to float
double with only two decimals?
Single precision /double precision?
Double to 3.s.f...
method parameter question