Opened 7 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
x2
sage: SR.next_variable('x2')
x3
sage: SR.next_variable('x0y') # suppose that x0y is not yet defined.
x0y

This would be better than

sage: SR.symbol()
symbol161
sage: SR.symbol()
symbol164

See also #14972

Change History (4)

comment:1 Changed 7 years ago by eviatarbach

  • Cc eviatarbach added

comment:2 Changed 7 years ago by rws

  • Description modified (diff)

comment:3 Changed 7 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.