Previous in Forum: separation of charges   Next in Forum: math
Close
Close
Close
29 comments
Rate Comments: Nested
Guru

Join Date: Jul 2007
Posts: 4448
Good Answers: 143

Accuracy in calculations?

10/12/2008 7:58 AM

Can anyone point me to a set of rules for approximately determining accuracy in a calculation? I don't want to use full blown max/min in every case, but the old significant figure rule that we learned in the second grade isn't worth two hoots when doing trig functions, for example.

__________________
"Well, I've wrestled with reality for 35 years, Doctor, and I'm happy to state I finally won out over it." Elwood P. Dowd
Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru

Join Date: Jul 2006
Location: "Dancing over the abyss."
Posts: 4884
Good Answers: 243
#1

Re: Accuracy in calculations?

10/12/2008 8:25 AM

these work for me:

http://www.astm.org/Standards/E29.htm

http://www.astm.org/Standards/D6026.htm

The use of the sample standard deviation (1 sigma)to represent a confidence interval (given sufficient samples from a population) is another approach (if normal distribution).

milo

__________________
People say between two opposed opinions the truth lies in the middle. Not at all! Between them lies the problem, what is unseeable,eternally active life, contemplated in repose. Goethe
Register to Reply
Guru
Engineering Fields - Control Engineering - New Member China - Member - New Member

Join Date: Sep 2006
Location: CHINA
Posts: 2945
Good Answers: 14
#3
In reply to #1

Re: Accuracy in calculations?

10/12/2008 8:54 AM

meaure tolorance belongs to normal distibution. so its max error would be less than 3sigma.

Register to Reply
Guru
Engineering Fields - Control Engineering - New Member China - Member - New Member

Join Date: Sep 2006
Location: CHINA
Posts: 2945
Good Answers: 14
#2

Re: Accuracy in calculations?

10/12/2008 8:45 AM

Approximate calculation is a subject.

significant figure is very useful at determinate result figure. but if you hope to know a process accuracy, you hve to use ways of approximate calculation. for your example of trangular function, say calculate a sin function, you will spread it into a series. for example, Tailor series, its residual terms will present you with the accuracy you wanted.(use e this complex number)

antoher example, differential can simplize a curve calculation. suppose, Y = x 2; at 2 neiboor, you can get deltaY = 2 X * deltaX ; say 2.1 you can get, 4+0.4=4.4 if you hope more accuracy, you spread 2 order or 3 order ... terms, so that you can approach original value infinitely. if you determine the accuracy in advance, you will use the residual terms of the series to determine how much terms you will use.

Register to Reply
Participant

Join Date: Oct 2008
Posts: 3
#4
In reply to #2

Re: Accuracy in calculations?

10/12/2008 9:41 AM

Please would one shorten the honerable 2 years of engineering language to how I just limit heat load studies to answers of only 3 sig fig's in engineering 102 terms , when you have a moment, as I know a little trig and differentials but never use in HVAC thermal transfer on calculations on the surface of numbers and multiplication... with addition but requiring a certain amount of accuracy...

Register to Reply
Guru
Popular Science - Weaponology - bwire Hobbies - Car Customizing - New Member

Join Date: Dec 2007
Location: Upper Mid-west USA
Posts: 7498
Good Answers: 97
#22
In reply to #2

Re: Accuracy in calculations?

10/14/2008 3:48 AM

Yes great work but I had the impression the thread poster wanted less than a bark park model with control of flexibility.

__________________
If death came with a warning there would be a whole lot less of it.
Register to Reply
Guru
Engineering Fields - Control Engineering - New Member China - Member - New Member

Join Date: Sep 2006
Location: CHINA
Posts: 2945
Good Answers: 14
#23
In reply to #22

Re: Accuracy in calculations?

10/14/2008 9:43 AM

What is [ a bark park model with control of flexibility.]?

its out of my depth.

thanks.

Register to Reply
Guru
Popular Science - Weaponology - bwire Hobbies - Car Customizing - New Member

Join Date: Dec 2007
Location: Upper Mid-west USA
Posts: 7498
Good Answers: 97
#27
In reply to #23

Re: Accuracy in calculations?

10/14/2008 11:15 AM

A ball park figuratively

__________________
If death came with a warning there would be a whole lot less of it.
Register to Reply Off Topic (Score 5)
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#5

Re: Accuracy in calculations?

10/12/2008 5:40 PM

It entirely depends on what you are calculating.

__________________
health warning: These posts may contain traces of nut.
Register to Reply Score 1 for Good Answer
3
Guru

Join Date: May 2006
Location: Placerville, CA (38° 45N, 120° 47'W)
Posts: 6215
Good Answers: 248
#6

Re: Accuracy in calculations?

10/13/2008 12:08 AM

I don't know what you learned in 2nd grade! I don't believe I ever heard of accuracy in calculations before high school (which was over 50 years ago...)(one significant figure, best expressed as 5E1 or 5x101 years).

Since you say approximate, The simple answer is that the result can't have any more significant figures than the least precise value used in the calculation, when doing multiplication and division. Since trig values are ratios, they fit this rule.

__________________
Teaching is a great experience, but there is no better teacher than experience.
Register to Reply Good Answer (Score 3)
Guru
Popular Science - Weaponology - bwire Hobbies - Car Customizing - New Member

Join Date: Dec 2007
Location: Upper Mid-west USA
Posts: 7498
Good Answers: 97
#7

Re: Accuracy in calculations?

10/13/2008 12:54 AM

A go-no go gage or standard then? What discipline?

__________________
If death came with a warning there would be a whole lot less of it.
Register to Reply
Guru
Popular Science - Weaponology - bwire Hobbies - Car Customizing - New Member

Join Date: Dec 2007
Location: Upper Mid-west USA
Posts: 7498
Good Answers: 97
#8

Re: Accuracy in calculations?

10/13/2008 1:02 AM

TVP45,

the old significant figure rule that we learned in the second grade isn't worth two hoots when doing trig functions,

Why not? Inverting the argument should be your tool...

__________________
If death came with a warning there would be a whole lot less of it.
Register to Reply
Guru

Join Date: Jul 2007
Posts: 4448
Good Answers: 143
#12
In reply to #8

Re: Accuracy in calculations?

10/13/2008 5:42 AM

Explain that, please. Am I overlooking something simple?

__________________
"Well, I've wrestled with reality for 35 years, Doctor, and I'm happy to state I finally won out over it." Elwood P. Dowd
Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#13
In reply to #12

Re: Accuracy in calculations?

10/13/2008 5:52 AM

Maybe it's worth 1.5 hoots?

__________________
health warning: These posts may contain traces of nut.
Register to Reply Off Topic (Score 5)
Guru
Popular Science - Weaponology - bwire Hobbies - Car Customizing - New Member

Join Date: Dec 2007
Location: Upper Mid-west USA
Posts: 7498
Good Answers: 97
#17
In reply to #12

Re: Accuracy in calculations?

10/13/2008 2:24 PM

Yes actually.

Guest explains it quite well in post #9.

I am not Guest and thank you Guest

__________________
If death came with a warning there would be a whole lot less of it.
Register to Reply
Guru
Engineering Fields - Control Engineering - New Member China - Member - New Member

Join Date: Sep 2006
Location: CHINA
Posts: 2945
Good Answers: 14
#21
In reply to #17

Re: Accuracy in calculations?

10/14/2008 3:35 AM

Im sorry in advance, I dont know if I can type here this words?

#9's answer is right, but not quite well ! Look at my answer above, you will know why he is not quite well.

He answered how the one order approximate way to take, but he hasnt answered the what accurancy.

Its pity you havnt yet found the issue. and select GA once more.

multi elements function is more complex operation to get its accurancy.

Register to Reply
Anonymous Poster
#9

Re: Accuracy in calculations?

10/13/2008 2:09 AM

Hi tv45,

Suppose you have an equation x=a*sin(b)-c, and you know the errors for INDEPENDENT variables a, b and c to be ea, eb and ec.

If ea, eb and ec are sufficiently small, then you can estimate the error ex by differentiating the expression for x, i.e.:

ex=ea*sin(b)+a*cos(b)*eb-ec

If you estimate/ know the MAX absolute errors for a, b and c to be Ea, Eb and Ec, then the absolute worst case scenario for ex is:

Ex=sqrt((Ea*sin(b))^2+(a*cos(b)*Eb)^2+(-Ec)^2)

This is a pessimistic and (in case of gross non-linearities) rather crude, approximation, just like you asked for.

(The good news is that you can vary Ea, Eb and Ec for different confidence levels and thereby get a statistical-ish distribution for ex...)

There is your answer. Frankly, if you are dealing with complex clusters of variables, i.e. x=a*sqrt(b+sin(c)) etc, differentiating analytically gets VERY complicated, and becomes inadvisable. Your best bet then is actually the min-max, which will prove less cumbersome if you put all your calculations in an excel sheet and calculate for a myriad of possible random values (in less than a sec...). You do have excel, I hope.

Hope this helps!

Register to Reply Score 1 for Good Answer
Guru
Popular Science - Weaponology - bwire Hobbies - Car Customizing - New Member

Join Date: Dec 2007
Location: Upper Mid-west USA
Posts: 7498
Good Answers: 97
#18
In reply to #9

Re: Accuracy in calculations?

10/13/2008 2:25 PM

GA, but log in to receive a rate

__________________
If death came with a warning there would be a whole lot less of it.
Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#10

Re: Accuracy in calculations?

10/13/2008 3:01 AM

To enhance my previous post, and at risk of guilding the lilly somewhat and possibly exceeding my usual Brevquot.

Say you are playing golf and 100 yards from the green (you've paced it from the 150yd marker) however you have also paced that you are 30 yards left of the fairway centre...now Pythagoras' Law could give you the distance to the flag
X= √ (1002 + 302) now this equals about 105 yards (half a club) you certainly don't need any decimals or even an accurate square root.

But remember to keep your head down, and try and stay on the fairway next time

Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply Score 1 for Off Topic
Guru

Join Date: Jul 2007
Posts: 4448
Good Answers: 143
#19
In reply to #10

Re: Accuracy in calculations?

10/13/2008 5:22 PM

I hope you don't expect me to take accuracy advice from someone who whiffs the tee shot twice, goes into the rough where he takes three mulligans, finally just kicking the ball when nobody's looking, throws his 7 iron into the water hazard, nine putts, and then takes a 4 for the hole claiming spectator interference because a groundskeeper hit the ball with his head!

__________________
"Well, I've wrestled with reality for 35 years, Doctor, and I'm happy to state I finally won out over it." Elwood P. Dowd
Register to Reply
Guru
Popular Science - Weaponology - New Member United Kingdom - Member - New Member

Join Date: May 2007
Location: Harlow England
Posts: 16512
Good Answers: 670
#20
In reply to #19

Re: Accuracy in calculations?

10/14/2008 2:28 AM

So you've seen me play!

Del

__________________
health warning: These posts may contain traces of nut.
Register to Reply Off Topic (Score 5)
Power-User

Join Date: May 2008
Posts: 380
#11

Re: Accuracy in calculations?

10/13/2008 3:20 AM

There is a formula you always can use,is different than a diferential and commonly more adjusted value:If y=f(x1,x2,---,xn),so then you estimate "y error" by:

{[(df/dx1)dx1]**2+------+[(df/dxn)dxn]**2}**(1/2)

Is understood dx1,---,dxn are not known values:are estimation of the most probable mistake of those variables,think it was "sigma" called.-

Register to Reply
Guru
Hobbies - HAM Radio - New Member

Join Date: Oct 2006
Location: Vancouver (not BC) Washington (not DC) US of A
Posts: 1261
Good Answers: 12
#14

Re: Accuracy in calculations?

10/13/2008 12:03 PM

Just be thankful that we no longer have to do it with a slide rule...

Bill

Register to Reply
Guru

Join Date: May 2006
Location: Placerville, CA (38° 45N, 120° 47'W)
Posts: 6215
Good Answers: 248
#15
In reply to #14

Re: Accuracy in calculations?

10/13/2008 12:15 PM

Actually, the slide rule automatically limited your calculations to 3 (or 4 if you were really good and/or had a larger than standard slide rule) digits.

__________________
Teaching is a great experience, but there is no better teacher than experience.
Register to Reply
Power-User

Join Date: May 2008
Location: Republic of Texas
Posts: 127
Good Answers: 2
#16
In reply to #15

Re: Accuracy in calculations?

10/13/2008 1:23 PM

What's a Slide Rule?

__________________
Ready--Set--EVOLVE!
Register to Reply Off Topic (Score 5)
Power-User
United States - Member - New Member

Join Date: Aug 2008
Location: KY, USA
Posts: 367
Good Answers: 18
#24

Re: Accuracy in calculations?

10/14/2008 10:17 AM

The simple answer is that the solution to a problem should be rounded to the number of significant figures from the least precise value, but what about the intermediate steps?

In 1995 my High School Chemistry teacher expected students to use a scientific calculator such as a TI-32 and insisted that students should always write down all values from intermediate steps rounded to the fifth decimal place (including values from sin(x), cos(x), etc.).

In 2003 my College Physics professor expected students to use a graphing calculator such as a TI-83 and insisted that students should achieve the highest possible precision using their calculators by never rounding off anything in intermediate calculations. (No one liked my Physics professor.)

The above can be achieved using a graphing calculator by reducing the equation as much as possible by hand using only variables then entering the reduced equation into the calculator in one step. If the equation is too complex to solve in one step, then intermediate values can be saved as variables in the calculator's memory which rounds the value(s) to the maximum number of digits that the calculator can store which is more than the calculator will show on the screen. This method is kind of the computerized version of the "slide-ruler rules" that some other members describe in this thread.

Finally, when all the hard work is done the answer is presented with the number of significant figures from the least precise value. Which is kind of nauseating in a classroom environment because the end result is that you have to keep up with 32 - 64 significant figures (depending on your calculator) in order to arrive at what is usually a 3 significant figure solution.

__________________
The most valuable of all talents is that of never using two words when one will do. ~Thomas Jefferson
Register to Reply
Guru

Join Date: May 2006
Location: Placerville, CA (38° 45N, 120° 47'W)
Posts: 6215
Good Answers: 248
#25
In reply to #24

Re: Accuracy in calculations?

10/14/2008 10:42 AM

I agree with the concept of keeping a couple of extra digits to avoid rounding errors in intermediate calculations, then rounding the final answer.

Keeping and writing down all the digits a calculator can produce is ridiculous, even for intermediate calculations. (This is from an ex college and high school physics teacher, who did require students to show how they got their answers.)

__________________
Teaching is a great experience, but there is no better teacher than experience.
Register to Reply
Power-User
United States - Member - New Member

Join Date: Aug 2008
Location: KY, USA
Posts: 367
Good Answers: 18
#26
In reply to #25

Re: Accuracy in calculations?

10/14/2008 10:53 AM

I never suggested that anyone should write anything down. The desciption above says to either let the calculator perform the calculation in one step or to save intermediate values in the calculator (STO->Z).

__________________
The most valuable of all talents is that of never using two words when one will do. ~Thomas Jefferson
Register to Reply
Guru
Hobbies - Musician - Tube Amps Only Please!

Join Date: Apr 2009
Location: Los Angeles, California USA
Posts: 553
Good Answers: 1
#28

Re: Accuracy in calculations?

11/06/2009 10:21 PM

If you use say an HP calculator it will tell you in the manual.

__________________
Regards, Maveric Manic - 'Knowledge is Power and Wisdom is knowing how to use it'
Register to Reply
Guru

Join Date: May 2006
Location: Placerville, CA (38° 45N, 120° 47'W)
Posts: 6215
Good Answers: 248
#29
In reply to #28

Re: Accuracy in calculations?

11/07/2009 12:20 AM

What? Read the manual...? Nah!

__________________
Teaching is a great experience, but there is no better teacher than experience.
Register to Reply Off Topic (Score 5)
Register to Reply 29 comments

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Anonymous Poster (1); bwire (6); cnpower (4); Comrade Col. Clamrod (1); dkwarner (4); EElectrician (2); ferquiza (1); JP GEO (1); maveric_manic (1); Milo (1); Sciesis2 (1); TVP45 (2); user-deleted-1105 (4)

Previous in Forum: separation of charges   Next in Forum: math

Advertisement