Ask Your Question

What does "Runtime Error: ECL says: ... is not of type FIXNUM" mean and how to fix it?

asked 2014-01-13 03:42:37 -0500

ensaba gravatar image

I am trying to integrate $x(0.6x^{0.5}+0.6)$ from $0$ to 1.

Here's what I tried:


But I received the following error:

RuntimeError: ECL says: 3.0 is not of type FIXNUM.

What does the error mean (I am especially curious where the 3 came from) and what can I do to correctly evaluate the definite integral? According to Wolfram Alpha, the answer is 0.54.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-01-13 04:54:00 -0500

kcrisman gravatar image

This doesn't fix the underlying issue that Maxima really doesn't like floating point exponents for some reason (see here for a related issue), but since you probably mean exact precision with your exponent here, try this:

sage: (x*(0.6*x^(1/2)+0.6)).integrate(x,0,1)

The underlying question is whether x^0.5 or x to any decimal power (as a "floating point" object) is really the same as x^(1/2), and if it isn't, then what the heck does it mean? These are subtle questions that different systems handle differently.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2014-01-13 03:42:37 -0500

Seen: 202 times

Last updated: Jan 13 '14