Comment #22 on issue 2217 by [email protected]: Patches tutorial
http://code.google.com/p/sympy/issues/detail?id=2217
Regarding the "Pushing patches" page, I see you corrected it quite rightly.
The Motivation page. Well, for some reason I haven't see this page before
(404 error was), the same was with other wiki pages from old(?) server. But
now I have seen this page. Should this page must be moved to the github
server?
Then, about Tutorial page.
First of all, what does the right answer must be for this test?
>>> from sympy import *
>>> x = Symbol('x')
>>> p = Wild('p')
>>> q = Wild('q')
>>> (5*x**2 + 3*x).match(p*x**2 + q*x)
In Tutorial result is written as `{p_: 5, q_: 3}`.
But in the release 0.6.7 version and in master the result is `{p_: 3/x, q_:
5*x}`
Then, about example (line 349) which raise Exception noticed at comment #20:
---------------------------
"One can also make use of the `WildFunction` class to perform more specific
matches with functions and their arguments:
```py
f = WildFunction('f', nofargs=1)
(5*cos(x)).match(p*f)
{p_: 5, f_: cos(x)}
(cos(3*x)).match(f(p*x))
{p_: 3, f_: cos}
g = WildFunction('g', nofargs=2)
(5*cos(x)).match(p*g)
{p_: 5, g_: cos(x)}
```
"
---------------------------
Should this example be removed (with pointed out text)?
And regarding the last error (about printer levels with exception about
obsoleted 'set_repr_level' attribute).
I have marked some text in Tutorial page with **to be removed (begin/end)**.
I think it must be removed, if no one haven't objection.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.