The imageset function is our interface for this in the development version >>> domain = Interval(0, sqrt(3)) >>> result = imageset(x, x**3 - 3*x, domain)
It doesn't guarantee to give you back a nice set though. It defaults to an ImageSet object which can answer some questions like set membership. What transformations that are known are implemented in ._eval_imageset methods of the various set classes. On Wed, Oct 30, 2013 at 2:12 PM, Alexander Birukov <[email protected]>wrote: > Hello everyone. > > Was wondering how can I get an image of function if I have an interval for > it (problem comes if I have unioned intervals. I dont know how can I call > each interval start/end or at least split union into Nth intervals). SymPy > docs gives info about transform. but I've browsed source code and it's not > even loaded as well as out of source files. So, it's taken away? > > Example of what I want (basically, it can be any function, keyboard input): > > f : R -> R > f(x) = x**3 - 3*x, x in R > > f([0, sqrt(3)] = [-2, 0] > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
