Hi,
The following is a bit confusing:
sage: f=(x-1)
sage: f.is_simplified()
False
sage: g=f.simplify()
sage: g
x - 1
sage: g.is_simplified()
True
Is this on purpose? I.e. if one had to describe what the function
is_simplified() is supposed to do, that description should be
"Return True if self is the result of running simplify() on a symbolic
expression"
rather than the naive
"Return True if self is a simplified symbolic expression"
If yes, should I just add this description to the function's doc? If
no, should I report this as a bug?
Cheers,
Alex
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHm5hBdZTaNFFPILgRAtzmAJ4ssbGkMLRGqfH6sYxvc/bVHo2xeQCcCDs5
JGN2jVZK5PziGVL4QIVTtWQ=
=c41N
-----END PGP SIGNATURE-----
Perhaps a clearer name would have been "has_been_simplified?" The
docstring could use clarifying though (and whoever wrote this
function might want to speak up).
- Robert
> --~--~---------~--~----~------------~-------~--~----~
> To post to this group, send email to sage-...@googlegroups.com
> To unsubscribe from this group, send email to sage-devel-
> unsub...@googlegroups.com
> For more options, visit this group at http://groups.google.com/
> group/sage-devel
> URLs: http://www.sagemath.org
> -~----------~----~----~----~------~----~------~--~---
I wrote it. You're right about the intention -- it's really
"has_been_simplified".
I would be OK with somebody changing the name to that.
--
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org