On Mar 10, 2:37 am, "[email protected]" <[email protected]> wrote:
> Done. I added also another simple sagelet which is nice to show local
> minima and
> maxima:http://wiki.sagemath.org/interact/calculus#A3Dgraphwithpoints
Looks good! Thanks for contributing.
> I wonder if it is possible to restrict the 3Dplot only to those x and
> y which satisfy a set of inequalities (can be used to show absolute
> maxima and minima). Is there any idea how to do this?
I've had the same thought as I was in class discussing absolute max
and min for functions of two variables on various domains (open/
closed, bounded/unbounded, etc). Quick-and-dirty might be to define
your calculus function as a seperate Python function and have the
Python function return a single value (like zero) for any point not in
the domain of interest. You'd just have to remember the distinction
for those points. Even better would be to return something like
"None" if that got passed to JMOL right (I don't know anything about
how Sage passes the plot information into JMOL).
I wonder if it would be possible to have a new argument to plot3d()
that would accept a boolean function that checks each (x,y) coordinate
considered in the plot routine and returns True/False if the point is
inside/outside the desired domain? Then it would just be a matter of
creating a callable function of two variables that encodes the
conditions for membership in the domain.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-edu" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-edu?hl=en
-~----------~----~----~----~------~----~------~--~---