ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 26 Nov 2012 10:20:43 -0600Is this a bug? FiniteSetMaps??http://ask.sagemath.org/question/9568/is-this-a-bug-finitesetmaps/These are two empty maps with two essentially equal parents:
f = FiniteSetMaps(set()).from_dict({})
g = FiniteSetMaps(set(),set()).from_dict({})
f == g
FalseSLOtoSFMon, 26 Nov 2012 10:20:43 -0600http://ask.sagemath.org/question/9568/Where is the Inverse feature in FiniteSetMaps??http://ask.sagemath.org/question/9485/where-is-the-inverse-feature-in-finitesetmaps/Say I have defined a map `f` within the set of maps FiniteSetMaps....
It's great that I can do things like: `f.domain()`, `f.codomain()`, `f.image_set()`, `f.getimage()`.
But how do I take the inverse? Is that feature not present? Is it in the roadmap?
Thanks.SLOtoSFTue, 30 Oct 2012 10:59:19 -0500http://ask.sagemath.org/question/9485/FiniteSetMaps map domain restrictionhttp://ask.sagemath.org/question/9448/finitesetmaps-map-domain-restriction/Are there methods to restrict or extend a domain of a map?SLOtoSFSun, 28 Oct 2012 11:42:11 -0500http://ask.sagemath.org/question/9448/Maps in FiniteSetMapshttp://ask.sagemath.org/question/9385/maps-in-finitesetmaps/I want to create a special function class which derives from a function, an element of FiniteSetMaps.
I am thinking it would look something like the below.
My two questions are:
1) What class should I derive this from?
2) What is the least taxing way to "initialize" this class and set it equal to the map I'm passing in.
See below. Thanks!
`
class SpecialFunction(<fill in the blank>):
def __init__(self,f):
CODE HERE TO Set self to be equal to the function f
def ColorOfFunction(self)
return "Blue" `
This is not *absolutely* necessary in what I'm implementing, though I would prefer saying `f.getcolor()` than `getcolor(f)`, as this will be useful from a namespace perspective as well.SLOtoSFWed, 03 Oct 2012 13:35:40 -0500http://ask.sagemath.org/question/9385/