On 8/12/07, John Cremona <[EMAIL PROTECTED]> wrote:
> This is the second example I have come across where I couldn't find a
> function because it didn't have a name, "only" a functional form using
> brackets().
>
> The other one was polynomial evaluation (substitution), for example
>
> R=QQ[x]
> f=x^2+3
> f(10)   ## =103
>
> -- in this case as soon as I mentioned it to William he implemented an
> equivalent f.subs(10) syntax which can at least be found using
> tab-completion.
>
> In Justin's example, could he have found the PSR(list) construction
> from tab-completion?  I don't think so.  How can we make the existence
> of these (neat, clever) tricks more visible to the user?

For starters, it would have been nice if PSR? in his case would
have had a few nice examples of how to make elements of a power
series ring.  As it is, PSR? gives nothing useful at all:
sage: R.<q> = QQ[[]]
sage: R?
Type:           PowerSeriesRing_over_field
Base Class:     <class
'sage.rings.power_series_ring.PowerSeriesRing_over_field'>
String Form:    Power Series Ring in q over Rational Field
Namespace:      Interactive

sage:

So more docstrings would help.

The tutorial should also contain many more helpful remarks about such
things.  In fact, it would be good if there were a section that listed several.

William

--~--~---------~--~----~------------~-------~--~----~
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/sage-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to