Opened 8 years ago

Last modified 7 years ago

#15831 new enhancement

implement SR.next_variable()

Reported by: rws Owned by:
Priority: major Milestone: sage-6.4
Component: symbolics Keywords: variable
Cc: eviatarbach Merged in:
Authors: Reviewers:
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description (last modified by rws)

Idea by ppurka in #14403. Something like this, not necessarily digit suffixes:

sage: SR.next_variable('x') # suppose x, x0, x1 are already defined
sage: SR.next_variable('x2')
sage: SR.next_variable('x0y') # suppose that x0y is not yet defined.

This would be better than

sage: SR.symbol()
sage: SR.symbol()

See also #14972

Change History (4)

comment:1 Changed 8 years ago by eviatarbach

  • Cc eviatarbach added

comment:2 Changed 8 years ago by rws

  • Description modified (diff)

comment:3 Changed 8 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:4 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4
Note: See TracTickets for help on using tickets.