On Wed, Apr 23, 2008 at 9:39 AM, William Stein <[EMAIL PROTECTED]> wrote:
>
> On Wed, Apr 23, 2008 at 8:34 AM, Hector Villafuerte <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi,
> > I haven't been able to 'expand' trigonometric functions in Sage using
> > identities such as:
> > sin(x + y) = sin(x)*cos(y) + sin(y)*cos(x)
> >
> > Is this currently implemented?
>
> sage:
> sage: var('x,y')
> (x, y)
> sage: f = sin(x+y)
> sage: f.tri[tab key]
> f.trig_expand f.trig_simplify
> sage: f.trig_expand()
> cos(x)*sin(y) + sin(x)*cos(y)
> sage:
>
Now, that's beautiful :)
I was not able to find it because I was assuming (mistakenly) that
search_doc also goes over docstrings. In this case, the following is
not very helpful:
sage: search_doc('trigonometric')
I should've tried search_src instead:
search_src('trigonometric')
Wouldn't it be a good idea for search_doc to search docstrings as well?
Best,
--
Hector
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---