Opened 12 years ago

Closed 7 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:

Status badges

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 10 years ago by kcrisman

Cc: kcrisman added

comment:2 Changed 9 years ago by jdemeyer

Milestone: sage-5.11sage-5.12

comment:3 Changed 9 years ago by vbraun_spam

Milestone: sage-6.1sage-6.2

comment:4 Changed 9 years ago by vbraun_spam

Milestone: sage-6.2sage-6.3

comment:5 Changed 8 years ago by vbraun_spam

Milestone: sage-6.3sage-6.4

comment:6 Changed 8 years ago by rws

Component: symbolicsdocumentation
Owner: changed from burcin to mvngu

comment:7 Changed 7 years ago by mmezzarobba

Milestone: sage-6.4sage-duplicate/invalid/wontfix
Reviewers: Marc Mezzarobba
Status: newneeds_review

Done in #12834; see also #18396.

comment:8 Changed 7 years ago by mmezzarobba

Status: needs_reviewpositive_review

comment:9 Changed 7 years ago by vbraun

Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.