Ask Your Question
1

TypeError: FIXNUM.

asked 2013-04-23 23:31:26 +0100

assadabbasi gravatar image

updated 2015-01-13 22:08:36 +0100

FrédéricC gravatar image

Hi everyone,

I am using function taylor() in sage to find the Taylor series of a function as follows:

var ('x')

fx = e^(-(1/632936348449528153)*(x))

taylor(fx,x,1,2)

it gives me the correct answer. But when the the denominator in the exponent (i.e. the denominator of 1/632936348449528153) is increased further by one digit (say 9) I receive the following error message

TypeError: ECL says: 6329363484495281539 is not of type FIXNUM.

My actual function is like

a=e^(-(1/632936348449528153937412733512609636)*(x1))

But when I use the above function again in taylor(), I get the error as shown below.

TypeError: ECL says: 632936348449528153937412733512609636 is not of type FIXNUM.

Is there any solution to overcome this error????

Note: I am using sage in the Sage Notebook online in a browser.

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2013-04-24 00:32:03 +0100

calc314 gravatar image

The following works for me:

var('a')
fx = exp(-a*x)
taylor(fx,x,1,2).subs(a=-(1/632936348449528153937412733512609636))
edit flag offensive delete link more
0

answered 2013-04-24 23:35:46 +0100

assadabbasi gravatar image

Thanks for your reply. Yes it solved my problem.

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

1 follower

Stats

Asked: 2013-04-23 23:31:26 +0100

Seen: 386 times

Last updated: Apr 24 '13