2 Graphs - 2 Intervals - 1 Window



Hallo Claudius,

> I've the following probleM:
> 
> I know how to plot 2 functions in the same window. Like:
> plot2d ([sin(x),cos(x)],[x,-3,3]);
> 
> But now I want to plot the funtions in 2 different Intervals (in the 
> same window):
> sin(x) with [x,-10,10] _and_
> cos(x) with [x,-3,2]
> 
> Does anoyone know how to do that?
> 

There is a trick involving parametric curves. It's not nice, but it
works:


(%i8) set_plot_option([gnuplot_curve_styles,["with lines 3"]])$
(%i9) plot2d(
        [[parametric,t,t+2,[t,-3,-1]],
         [parametric,t,t^2,[t,-1,2]],
         [parametric,t,log(t-1),[t,2,6]]])$

Maybe you can play with this to get exactly what you want.

> Greetings
> Claudius

Herzliche Gruesse.

-- 
Mario Rodriguez Riotorto
www.biomates.net