Re: is_real for cos

2008-01-20 Thread Kirill Smelkov
Hi Saroj :) On Sun, Jan 20, 2008 at 03:05:25PM -0800, Saroj wrote: > On Jan 20, 11:28 am, Kirill Smelkov <[EMAIL PROTECTED]> wrote: > > Hi Adh, > Forgive my email address, that's part of my last name. My name is > Saroj. I didn't realize my nickname was my email address. Sorry about that. The fi

Re: is_real for cos

2008-01-20 Thread Saroj
On Jan 20, 11:28 am, Kirill Smelkov <[EMAIL PROTECTED]> wrote: > Hi Adh, Forgive my email address, that's part of my last name. My name is Saroj. I didn't realize my nickname was my email address. On adding to asin and acos, we should at least check whether the value passed lies between -1 and

Re: is_real for cos

2008-01-20 Thread Kirill Smelkov
Hi Adh, On Sat, Jan 19, 2008 at 03:20:36PM -0800, [EMAIL PROTECTED] wrote: > > In [15]: x, y, z = symbols('xyz', real=True) > > In [16]: exp(I*x).expand(complex=True) > Out[16]: I*sin(x) + cos(x) > > In [17]: re(_) > Out[17]: re(cos(x)) > > In [18]: im(__) > Out[18]: im(cos(x)) + sin(x) > >

is_real for cos

2008-01-19 Thread [EMAIL PROTECTED]
In [15]: x, y, z = symbols('xyz', real=True) In [16]: exp(I*x).expand(complex=True) Out[16]: I*sin(x) + cos(x) In [17]: re(_) Out[17]: re(cos(x)) In [18]: im(__) Out[18]: im(cos(x)) + sin(x) Obviously the output should have been cos(x) and sin(x) respectively. I created an issuse for this htt