You are not logged in.
Pages: 1
Try your favorite CAS out on this one.
With a = 77617.0 and b = 33096.0
Evaluate the above expression. You must use the numbers as you see them. In other words you must enter 77617.0 not 77617
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Hi bobbym,
Nice one!
Is it a problem with floating point representation?
"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?
"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."
Offline
Hi gAr;
That is one of its problems. The guy who designed it wanted to prove there was a big hole in the way numerical people verify digits.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Oh, does he tell what kind of equations suffer like that?
"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?
"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."
Offline
That is the point. Sometimes you can tell that an equation is going to give a CAS ( or a calculator ) a lot of problems. But sometimes you cannot. That one came as a surprise to me too.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
So we do not know when to trust the answers and when not to!
"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?
"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."
Offline
You should always mistrust an answer a CAS gives. Same way you should mistrust anything a human says. There are basic guidelines and I will be posing them in the future.
There is a big difference between the way human mathematicians do math and the way a CAS does it. One of the funniest examples is
Human math: This is an identity:
Computer math: This is not!
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I agree.
For that identity, yes, real numbers are always a problem!
"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?
"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."
Offline
You also do not use the quadratic formula to get roots.
Did you try that expression? What did you get?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Hi bobbym,
Did you try that expression? What did you get?
Is it the identity you are asking about?
For numbers like a=1.1 and b=2.2, it displays correctly. When digits after decimal places are increased, it fails.
"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?
"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."
Offline
Hi gAr;
With that identity as well as lots of others the best way is to plot (a+b)(a-b) - (a^2 - b^2 ). Instead of getting a flat line on the x axis ( y = 0 ) you should get a crazy graph of undulating spikes.
I meant the expression in post #1.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Hi bobbym,
Ok.
For that expression I get:
-1.18059162071741e21
and 1.18059162071741e21 for those two numbers as integers.
"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?
"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."
Offline
Hi gAr;
That expression is extremely difficult for a package to evaluate. We say it is ill conditioned. Adjust your digit command to get higher precision and try again.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Aha, now both the expressions work fine.
I increased the precision to 100 digits.
"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?
"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."
Offline
What did you get, do not forget to hide it?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Hi bobbym,
"Believe nothing, no matter where you read it, or who said it, no matter if I have said it, unless it agrees with your own reason and your own common sense" - Buddha?
"Data! Data! Data!" he cried impatiently. "I can't make bricks without clay."
Offline
Hi gAr;
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Pages: 1