I'm pretty sure you are aware of this, but count is actually a method of
Expr. Not sure how to use it, though:
In [3]: sin(2*x).count(S(2))
Out[3]: 0
In [6]: sin(2*x).count(x)
Out[6]: 0
...
On 01.09.2011 06:07, smichr wrote:
Is there a nice way to get Tuple to inherit tuple's methods? e.g. t
I didn't look into it. I now see:
>>> Tuple(1,2,3,4,2).count(lambda i:i==2)
2
It should probable work when receiving a simple count(2), however. I
suspect it's because rec_find doesn't register {} (not None) as a hit.
--
You received this message because you are subscribed to the Google Groups
OK, it looks like the instantiation is not going to change. Could
someone interested in Matrix take a look at the other changes:
All indices (except absolute indices) behave like indices to python
lists. So negative indices are now supported:
M[1,-1] gives the last element of row 1
col_insert(-1,
Hi,
On 1 September 2011 05:13, Chris Smith wrote:
> I didn't look into it. I now see:
>
> >>> Tuple(1,2,3,4,2).count(lambda i:i==2)
> 2
>
> It should probable work when receiving a simple count(2), however. I
> suspect it's because rec_find doesn't register {} (not None) as a hit.
The issue is
https://github.com/sympy/sympy/pull/585
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to
sympy+unsubscr...@googlegroups.com.
For more options, vi
OK, they both seem to work on my computer now.
Aaron Meurer
On Wed, Aug 31, 2011 at 5:23 PM, Roberto Colistete Jr.
wrote:
> On 12 ago, 10:46, Aaron Meurer wrote:
>> On Fri, Aug 12, 2011 at 7:33 AM, Aaron Meurer wrote:
>> > Ah, I see. The printing doesn't seem to work on my computer. It just
I didn't read any code, but here's my thoughts on what you said here
On Thu, Sep 1, 2011 at 6:16 AM, smichr wrote:
> OK, it looks like the instantiation is not going to change. Could
> someone interested in Matrix take a look at the other changes:
>
> All indices (except absolute indices) behave
(forgot to CC the original author)
Aaron Meurer
On Thu, Sep 1, 2011 at 7:31 PM, Aaron Meurer wrote:
> Hi.
>
> I am forwarding this message, and all attachments, that was sent to me
> (with the author's permission). I don't have time to look at this
> now, so if others could play around with it,
Kurt,
Specifically what changes did you have to make to Basic. IPython
allows you to register arbitrary print logic for any class without
changing that class, so all of this should be possible without any
changes to Basic or the rest of sympy. Are you able to use the latex
that is generated by s
>> The dot product is a little more flexible, returning a list if given
>> anything other than a single row or col
>
> I don't know if that's a great idea. You can just do matrix
> multiplication if you want multiple dot products (and it may even be
> faster).
It always does matrix multiplication
10 matches
Mail list logo