Re: [sage-devel] Re: Test the "binomial" function in an expression

2010-10-11 Thread Burcin Erocal
On Sun, 10 Oct 2010 17:53:49 -0700 (PDT) kcrisman wrote: > > It looks like the top level binomial() function is a mess already. > > > >  - binomial does not accept variable when only in the lower argument > >        http://trac.sagemath.org/sage_trac/ticket/9634 > > > >  - binomial does not accep

[sage-devel] Re: Test the "binomial" function in an expression

2010-10-10 Thread kcrisman
> It looks like the top level binomial() function is a mess already. > >  - binomial does not accept variable when only in the lower argument >        http://trac.sagemath.org/sage_trac/ticket/9634 > >  - binomial does not accept float >        http://trac.sagemath.org/sage_trac/ticket/9633 Oh, y

Re: [sage-devel] Re: Test the "binomial" function in an expression

2010-10-07 Thread Francois Maltey
dagss wrote : op = y.operator # so op == cos if op == cos : ... # this test is fine, not the next one Now I want to test an expression with the binomial function call. y = binomial (3*x, x)# is fine op = y.operator() # is also fine Why is there a () here, but not in the previou

[sage-devel] Re: Test the "binomial" function in an expression

2010-10-07 Thread dagss
On Oct 7, 10:39 pm, Francois Maltey wrote: > Hello, > > I play with expressions, and transform sin(x) to (exp(i*x)-exp(-i*x))/2. > > So I use a lot of test as > > var ('x') > y = cos(x)      # or any other expression" > op = y.operator   # so op == cos > if op == cos : ...  # this test is fine, no