Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Yes, that's what I wanted to achieve. Thank you very much!

I am now wondering why the following is not working and whether it can be made to work:

f(x)=cos(x) g(x)=sin(x) h(x)=max_symbolic(f(x),g(x)) a=plot(f,-2pi,2pi) b=plot(g,-2pi,2pi,color='green') c=plot(h,-2pi,2pi,color='red') show(a+b)

Yes, that's what I wanted to achieve. Thank you very much!

I am now wondering why the following is not working and whether it can be made to work:

f(x)=cos(x) g(x)=sin(x) h(x)=max_symbolic(f(x),g(x)) f(x)=cos(x)

g(x)=sin(x)

h(x)=max_symbolic(f(x),g(x))

a=plot(f,-2pi,2pi) pi)

b=plot(g,-2pi,2pi,color='green') pi,color='green')

c=plot(h,-2pi,2pi,color='red') pi,color='red')

show(a+b)

Yes, that's what I wanted to achieve. Thank you very much!

I am now wondering why the following is not working and whether it can be made to work:

f(x)=cos(x)

g(x)=sin(x)

h(x)=max_symbolic(f(x),g(x))

a=plot(f,-2pi,2pi)a=plot(f,-pi,pi)

b=plot(g,-2pi,2pi,color='green')b=plot(g,-pi,pi,color='green')

c=plot(h,-2pi,2pi,color='red')c=plot(h,-pi,pi,color='red')

show(a+b)

Yes, that's what I wanted to achieve. Thank you very much!

It also works with 2 functions, which is what I am now wondering why needed in the following is not working and whether it can be made to work:end.

Thanks again

f(x)=cos(x)

g(x)=sin(x)

h(x)=max_symbolic(f(x),g(x))

a=plot(f,-pi,pi)

b=plot(g,-pi,pi,color='green')

c=plot(h,-pi,pi,color='red')

show(a+b)show(a+b+c)