Oops, cut and past the wrong bits at the end - and google's syntax
highlighting was going haywire:
sage: MyPartition([3,2])
[3, 2]
sage: MyPartition([3,2]).cells()
[(0, 0), (0, 1), (0, 2), (1, 0), (1, 1)]
sage: MyPartition([3,2]).fred()
'fred'
--
You received this message because you are subsc
On Saturday, 7 June 2014 00:13:50 UTC+10, Dinakar Muthiah wrote:
>
> Ideally, I would like to define a subclass of Partition called MyPartition
> and include all my custom methods. I think this is a standard way to extend
> libraries, but for some reason this doesn't work at all. Is there a
> so
On Friday, June 6, 2014 7:13:50 AM UTC-7, Dinakar Muthiah wrote:
>
> Ideally, I would like to define a subclass of Partition called MyPartition
> and include all my custom methods. I think this is a standard way to extend
> libraries, but for some reason this doesn't work at all. Is there a
> so
Thank you! I have a lot to learn about Sage, I can see. Will study &
experiment with recn.
In most cases, an integer exponent should look like "2" and not
"2.000", don't you think? So I guess I would not n() the exponents.
I have just started using Sage and SMC with some online classes. It'
On Thursday, June 5, 2014 6:32:42 PM UTC-7, Hal Snyder wrote:
>
> IIs there a simple way to take n() of things without getting into the
> following?
>
You could automate the application, but you'll quickly see you need to be a
bit careful:
#unfortunately, the operators returned for sums and prod
Volker Braun wrote:
Reported at http://www.singular.uni-kl.de:8002/trac/ticket/621
Fix committed upstream:
https://github.com/Singular/Sources/commit/28f4fe9464722511718050dfab7cd61d29898968
If somebody^TM opens a ticket (or has already done so), please cc me or
post the ticket # here.
I'l
On Thursday, June 5, 2014 11:24:39 PM UTC-4, Robert Dodier wrote:
>
> On 2014-06-06, kcrisman > wrote:
>
> > lim(1/n^2*integrate(sin((2*n+1)*x)/sinh(x),x,0,pi/2),n=infinity)
>
> I couldn't make any progress with the integral (in Maxima).
> Computing the integral numerically with quad_qawo (sam
Ideally, I would like to define a subclass of Partition called MyPartition and
include all my custom methods. I think this is a standard way to extend
libraries, but for some reason this doesn't work at all. Is there a solution
that is more in the spirit of subclassing?
--
You received this me
On Thursday, June 5, 2014 2:50:22 PM UTC-7, Dinakar Muthiah wrote:
>
> Partition.i_part = i_part
>
> Then if later I wrote:
>
> p = Partition([3,2,1])
>
> I can call
>
> p.i_part(2)
>
That works. Of course, without the "monkey-patching" (changing code on a
class after its original definition), y