hello,
why is the below code plotting a flat function rather than a box one?
renato
def box(x,c):
if abs(x) < c:
return 1
else:
return 0
var('x')
plot(box(x,1),(x,-3,3))
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group
On Mon, Jan 31, 2011 at 12:48 AM, Francois Maltey wrote:
> Renato a écrit :
>
> Hello, I can't understand how the ticks option works in plot()... I
>> want to have no ticks or labels on the axis.
>>
>> Also, is it possible to show the arrows on the axis? like this:
>> http://www.homeschoolmath.n
Hello, I'd like to plot this function of x (latex code):
x/2 + sum_{r=1}^n cos(rx)
for some fixed n. However I'm running into problems... as I understand it
sage converts the sum of cosines in a sum of exponentials, but then somehow
doesn't get real values (and thus can't plot the function in the p
Hello, I'm studying a course in dynamical systems and I was wondering if,
given a differential equation, there are easy (i.e. not writing the
functions myself)
ways, in SAGE, to:
1- draw phase portraits
2- draw bifurcation diagrams
currently I'm concerned mainly about continous 1-dimensional aut