On Wed, Apr 23, 2008 at 11:52 AM, Hector Villafuerte <[EMAIL PROTECTED]> wrote: > > > 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') >
Search_doc just searches the sage reference manual, which is mostly a subset of docstrings. It's a primitive function I wrote in an hour. Something better would be greatly appreciated. > 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? YES! William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---