Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

Pages: **1**

**evinda****Member**- Registered: 2013-04-13
- Posts: 105

Hey!!I have a question..

Suppose base=10 , precision t=3, -L=U=10 and

I want to calculate the relative error for B.

We don't make rounding.For example,if we have the value 345.924 it is equal to and the corresponding floating number is .

Could you tell me which is the result,so I can check mine?

*Last edited by evinda (2014-02-06 01:55:29)*

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 98,956

Hi evinda;

I am afraid I do not understand what you want. What do you want to check the relative error for?

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

**evinda****Member**- Registered: 2013-04-13
- Posts: 105

bobbym wrote:

Hi evinda;

I am afraid I do not understand what you want. What do you want to check the relative error for?

I found the relative error

but I don't know if the result that I found is right.Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 98,956

What is your result?

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

**evinda****Member**- Registered: 2013-04-13
- Posts: 105

bobbym wrote:

What is your result?

I found

.Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 98,956

Is this what you are calculating?

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

**evinda****Member**- Registered: 2013-04-13
- Posts: 105

bobbym wrote:

Is this what you are calculating?

Yes, I calculate the real value of this

and its value as a floating-point number.So,the result I am looking for should have the form

*Last edited by evinda (2014-02-06 02:34:53)*

Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 98,956

The exact value is 3 / 10, now what did you get for your floating point value?

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

**evinda****Member**- Registered: 2013-04-13
- Posts: 105

bobbym wrote:

The exact value is 3 / 10, now what did you get for your floating point value?

I got

..Is this right?Offline

**bobbym****Administrator**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 98,956

1? How did you get that?

I can calculate the relative error of that answer if you like.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.** **Thinking is cheating.**

Offline

Pages: **1**