#### tristatefabricatorsinc

##### Junior Member

- Joined
- Jan 31, 2006

- Messages
- 60

x

------------------

1-x-x^2

I am unsure how to solve this....

Any help would be greatly appreciated...

Thanks

- Thread starter tristatefabricatorsinc
- Start date

- Joined
- Jan 31, 2006

- Messages
- 60

x

------------------

1-x-x^2

I am unsure how to solve this....

Any help would be greatly appreciated...

Thanks

- Joined
- Jan 31, 2006

- Messages
- 60

Thank You!

- Joined
- Apr 12, 2005

- Messages
- 9,784

Of course, if you are dealing with values very close to zero, you will also need to worry about precision.

You may improve your life a little by avoiding exponentiation. Change the denominator to 1-x*(1+x) -- Please notice that it is NOT (1-x)*(1+x)!

- Joined
- Jan 31, 2006

- Messages
- 60

I am sorry, when you say check the denominator for zero, what does that mean exactly?

It means to set the denominator equal to 0 and determine what values for x would make that true. Those values must be excluded from any solution values for x, since division by something equal to 0 is not defined.tristatefabricatorsinc said:I am sorry, when you say check the denominator for zero, what does that mean exactly?

IF it's a programming exercise, WHY are you trying to solve it?tristatefabricatorsinc said:What is the quotient of...

x

------------------

1-x-x^2

I am unsure how to solve this....

A bit like what TK is telling you, all you need is:

Get x

If (1 - x - x^2) <> 0 then d = x / (1 - x - x^2)

I'll bet your teacher is looking for that kind of logic.