ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 04 Dec 2014 17:53:03 +0100Plotting a 2d functionhttps://ask.sagemath.org/question/25122/plotting-a-2d-function/This should be easy, I want to make a nice colour plot of a 2d function where colour denotes the function value.
I can do
> y=var('y')
> f=y^2
> plot(f)
and I get a nice plot.
If I try
> y=var('y')
> f=y^2+x^2
> plot(f)
Then sage tells me it can't find the variable y. Which is ridiculous, since y is in the same place as when I tried to plot a 1d function of y. Anyway, I tried googling to find a function within sage to achieve this (without resorting to excessive matplotlib syntax) and had no success so thought I'd ask a question here. Intuitively, the second case is hardly more complicated than the former so there should be a simple function that can realize this for me.
Many thanks!DarwinThu, 04 Dec 2014 17:53:03 +0100https://ask.sagemath.org/question/25122/min(f,g) where f and g take two variableshttps://ask.sagemath.org/question/8907/minfg-where-f-and-g-take-two-variables/Hi
Is it possible to create a function h(x,y) that would be the minimum (or maximum) of any two other 2-variable functions?
Like h(x,y)=max(f(x,y),g(x,y))? (this does not work)
This seems to be a rather useful function but I can't seem to find it.
any ideas?
Thanks
N.sagembThu, 19 Apr 2012 15:52:55 +0200https://ask.sagemath.org/question/8907/