Opened 10 years ago

Closed 5 years ago

#10049 closed enhancement (fixed)

improve documentation of substitute for symbolic expressions

Reported by: burcin Owned by: mvngu
Priority: minor Milestone: sage-duplicate/invalid/wontfix
Component: documentation Keywords:
Cc: jpflori, kcrisman Merged in:
Authors: Reviewers: Marc Mezzarobba
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

The following behavior can be confusing:

sage: var('x,y,z')
(x, y, z)
sage: t = x+y+z
sage: t.subs({x+y:5})
x + y + z

The match() function for symbolic expressions already provides a link to the relevant part of the GiNaC tutorial:

http://www.ginac.de/tutorial/Pattern-matching-and-advanced-substitutions.html

Perhaps the substitute() function should do this too.

Reported by Jean-Pierre Flori on sage-devel:

http://groups.google.com/group/sage-devel/t/897b14e456ac077f

See also #10048 which is relevant to that thread.

Change History (9)

comment:1 Changed 8 years ago by kcrisman

  • Cc kcrisman added

comment:2 Changed 7 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:3 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:4 Changed 6 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:5 Changed 6 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4

comment:6 Changed 6 years ago by rws

  • Component changed from symbolics to documentation
  • Owner changed from burcin to mvngu

comment:7 Changed 5 years ago by mmezzarobba

  • Milestone changed from sage-6.4 to sage-duplicate/invalid/wontfix
  • Reviewers set to Marc Mezzarobba
  • Status changed from new to needs_review

Done in #12834; see also #18396.

comment:8 Changed 5 years ago by mmezzarobba

  • Status changed from needs_review to positive_review

comment:9 Changed 5 years ago by vbraun

  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.