Ask Your Question

Computing derivatives

asked 2013-08-15 06:46:42 -0500

pinwheel gravatar image

Hey guys,

I dont know where the problem is, but sage (5.10 here) doesnt compute easy derivatives as e.g.

x = var('x')
f = sqrt(x)

This leads to the following error: TypeError: unable to simplify to float approximation

Whats the problem here?

edit retag flag offensive close merge delete


Can you give us your *complete* session? This should work fine, it sounds like you probably accidentally defined something in-between which changed things.

kcrisman gravatar imagekcrisman ( 2013-08-15 07:46:33 -0500 )edit

That's what you'd get if `sqrt` were actually `math.sqrt` and not Sage's `sqrt`.

DSM gravatar imageDSM ( 2013-08-15 07:55:35 -0500 )edit

DSM, why don't you put your answer as an answer so pinwheel can accept it?

kcrisman gravatar imagekcrisman ( 2013-08-15 14:55:23 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-08-15 10:39:10 -0500

pinwheel gravatar image

You are perfectly right. I defined sqrt as math.sqrt at the very beginning of my session. I completely forget that this is still included.

Thanks a lot!

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: 2013-08-15 06:46:42 -0500

Seen: 86 times

Last updated: Aug 15 '13