# Relative error

 Register Blogs Members List Search Today's Posts Mark Forums Read

 August 14, 2007, 09:33 Relative error #1 Neazen Guest   Posts: n/a Hi all, I've got a question related to relative errors in the special case where the x(exact) is nearly 0. Example : x(exact) = 1 e-10 x(simul) = 0.001 Er = |x(exact)-x(simul)|/|x(exact)| = 9999999!!! I would like to know if there is a way to avoid this situation. Thanks in advance.

 August 14, 2007, 11:39 Re: Relative error #2 Harish Guest   Posts: n/a Can you make your system non dimensional ? In that way you would not need to go for such high precision requirements.

 August 14, 2007, 11:55 Re: Relative error #3 Neazen Guest   Posts: n/a Well, the purpose is to compare some methods via the absolute and relative errors. The equation resolved is of type: m.d2(y)/dt2 + k.y = f with y=1 and dy/dt=0 and the exact solution is y=cos(wt). It's clear to see that the y is zero, or nearly, at Pi/2 for example, as I explained before.

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post piotka STAR-CD 4 June 12, 2009 08:43 phsieh2005 OpenFOAM Running, Solving & CFD 2 March 21, 2009 06:18 edvardsenpriv Open Source Meshers: Gmsh, Netgen, CGNS, ... 23 January 16, 2009 07:12 waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 05:07 Martin J Main CFD Forum 8 August 14, 2003 23:19

All times are GMT -4. The time now is 20:40.