Opened 14 years ago

Closed 2 years ago

#3277 closed enhancement (fixed)

context for calculus assumptions

Reported by: Robert Bradshaw Owned by: Gary Furnish
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: calculus Keywords: assume
Cc: Marc Mezzarobba, Emmanuel Charpentier Merged in:
Authors: Reviewers: Dave Morris
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: #24119 Stopgaps:

Status badges

Description

one should be able to do something like

with assumptions(x<0):
    ...

where assume() and forget() would be called on the entering and exiting of the block. This could probably be cleanly done with maxima's contexts.

Change History (10)

comment:1 Changed 14 years ago by Gary Furnish

I'm going to implement passing of assumptions into functions, so much of this can be done as an addon to that (with some global assumption list)

comment:2 Changed 14 years ago by Karl-Dieter Crisman

See also #780 and #1163 for discussions of assumption issues.

comment:3 Changed 11 years ago by Karl-Dieter Crisman

Keywords: assume added
Report Upstream: N/A

See also this ask.sagemath.org question, which would love this. Note that Maxima does support contexts.

comment:4 Changed 7 years ago by Marc Mezzarobba

Cc: Marc Mezzarobba added

comment:5 Changed 2 years ago by Matthias Köppe

Cc: Emmanuel Charpentier added
Dependencies: #24119
Milestone: sage-wishlistsage-duplicate/invalid/wontfix
Status: newneeds_review

This was implemented in #24119. Should be closed as a dup

comment:6 Changed 2 years ago by Dave Morris

Reviewers: Dave Morris
Status: needs_reviewpositive_review

comment:7 Changed 2 years ago by Karl-Dieter Crisman

NO WAY! Thanks to Emmanuel for that!

comment:8 in reply to:  7 ; Changed 2 years ago by Emmanuel Charpentier

Replying to kcrisman:

NO WAY! Thanks to Emmanuel for that!

I may be dense but ... What do you mean by "NO WAY!" ? Do you think that this ticket should be treated separately from #24119 ?

Last edited 2 years ago by Emmanuel Charpentier (previous) (diff)

comment:9 in reply to:  8 Changed 2 years ago by Karl-Dieter Crisman

NO WAY! Thanks to Emmanuel for that!

I may be dense but ... What do you mean by "NO WAY!" ? Do you think that this ticket should be treated separately from #24119 ?

Sorry, an Americanism - it means, "I don't believe this amazing thing that has happened!" Purely a phrase of thankfulness and surprise.

comment:10 Changed 2 years ago by Samuel Lelièvre

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