Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Expression evaluation gives bad results' topicStudent Support Forum > General > Archives > "Expression evaluation gives bad results"

Next Comment >Help | Reply To Topic
Author Comment/Response
Tomas Zahradnicky
01/05/05 4:36pm

Hi, I'm just learning to use Mathematica and I've defined the following function:

f[a_, b_] = 333.75*b^6 +
a^2*(11*a^2*b^2 - b^6 - 121*b^4 - 2) + 5.5*b^8 + a/(2*b)

f[77617, 33096] is supposed to be -0.8273960599468214 while Mathematica gives 1.1805916207174113e21. I've verified my result with Maple and GNU MP/MPFR with 1024 bit mantissa and both gave the number it is supposed to be.

Neither of single, double or extended precision floating point numbers was able to calculate this expression.

What could I be doing wrong?

Thanks,

Tomas

URL: ,

Subject (listing for 'Expression evaluation gives bad results')
Author Date Posted
Expression evaluation gives bad results Tomas Zahrad... 01/05/05 4:36pm
Re: Expression evaluation gives bad results Forum Modera... 01/20/05 12:46pm
Re: Expression evaluation gives bad results highegg 01/26/05 02:56am
Next Comment >Help | Reply To Topic