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,-2*pi,2*pi)
b=plot(g,-2*pi,2*pi,color='green')
c=plot(h,-2*pi,2*pi,color='red')
show(a+b)

2 | No.2 Revision |

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,-2*pi,2*~~pi)
~~pi)

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

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

show(a+b)

3 | No.3 Revision |

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,-2~~a=plot(f,-pi,pi)*pi,2*pi)

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

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

show(a+b)

4 | No.4 Revision |

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)

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.