|
From: Federico B. <fed...@gm...> - 2010-10-04 19:47:51
|
Hi I'm trying to plot a discontinuous function like this f(x) = a1*x**2+b1*x+c1 for x in [t11,t12] f(x) = a2*x**2+b2*x+c2 for x in [t21,t22] f(x) = a3*x**2+b3*x+c3 for x in [t31,t32] .... .... ... where t11<=t12<=t21<=t22, etc and I don't know how to do it. I've tried defining as many functions as intervals and making the function undefined (1/0) outside its interval and plotting each function (with persistent plot) but it doesn't work when the intervals are small. Thanks Federico -- I find television very educational. Every time someone switches it on, I go into another room and read a good book. |