|
-
Feb 11th, 2001, 02:59 PM
#1
Thread Starter
Frenzied Member
Hey,
Ok, i have got the equation:
(((X * X) - X) - 1) = 0
"X Squared, Minus X, Minus 1"
What i have to do is work out what x is to make 0 so say 3*3 - 3 - 1 etc. Does anyone know the answer or an program that will work out the answer. I have this:
#include <iostream.h>
void main (void)
{
float cur;
float x;
char *temp;
cur = 0.0;
do
{
cur = cur + 0.0000000000000000000000000000000000000001;
x = (((cur * cur) - cur) - 1);
cout << cur << "\t" << x << endl;
}while (x != 0);
cin >> temp;
}
but im not sure if thats working properly. It can be in vb or c++ but i just need to find what valuse X has to be so that X squared, minus X, minus 1 is equal to 0.
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|