For example: How can I get sage to simplify ( sqrt(2) + sqrt(3) ) * ( sqrt(2) - sqrt(3) ) to -1? I've tried simplify() but it wont do it. Thanks.
Not every method -- i.e. a function which lives inside an object -- has a function form. What I mean is that you can write sqrt(2), because sqrt is a function, and you could also write 2.sqrt(), but not everything is paired up like that.
This holds for simplify too. There is a simplify function, but you can get much tighter control by calling the simplify methods. You can usually look inside an object by hitting TAB. For example:
In sage, lots of functionality lives inside objects like this. If you type
you'll see a bunch of possibilities. If you type
you can see the docs for it (and two ?? show the code.)
All of that is a long-winded way to bring us here:
Asked: Jan 29 '12
Seen: 360 times
Last updated: Jan 29 '12
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.