Ask Your Question

gt4431b's profile - activity

2017-12-12 12:34:31 -0600 received badge  Famous Question (source)
2014-05-03 15:16:54 -0600 received badge  Notable Question (source)
2013-02-04 16:04:05 -0600 received badge  Popular Question (source)
2011-07-01 10:43:35 -0600 received badge  Good Answer (source)
2011-07-01 10:43:35 -0600 received badge  Nice Answer (source)
2011-07-01 10:43:35 -0600 received badge  Self-Learner (source)
2010-11-08 13:18:49 -0600 received badge  Self-Learner (source)
2010-11-08 13:18:40 -0600 received badge  Teacher (source)
2010-11-08 13:18:39 -0600 received badge  Student (source)
2010-11-08 13:18:39 -0600 received badge  Editor (source)
2010-10-26 11:48:23 -0600 answered a question Plotting Overlapping Curves

Okay, answering my own question, in case someone else got confused like I did:

p1 = plot(x^2,(x,0,5),rgbcolor=hue(0.4))
p2 = plot(2^x,(x,0,5),rgbcolor=hue(0.6))
show(p1+p2, axes=true)

Here the function of the '+' operator seems to mean "and" rather than "plus".

2010-10-26 11:40:14 -0600 asked a question Plotting Overlapping Curves

Stupid newbie question!

I want to be able to plot two or more functions on a single graph. For example, I wish to plot $x^2$ and $2^x$, say in red and blue, such that a person can readily see, with their eyes, where the two curves intersect.

Unfortunately, I can't figure out how to make this happen. It seems like it would be a common teaching device but how to make it work?

Any assistance welcomed!