Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Plots: display period information

Disclaimer: I'm new to Sage.

Is it possible to indicate the period when plotting periodic functions?

According to my trig book, for example, "you have a graph that has four complete cycles of the sine curve in the space where you would usually find one." f(x)=-2sin(4(x+pi/4))+3 plot(f(x),(x,-2pi,2pi))

Is there a way to indicate each period? If not, could I approximate it with ticks (e.g., plot(x**2, (x,0,3), ticks=[[1,2.5],pi/2], tick_formatter=[["$x_1$","$x_2$"],pi]))

Plots: display period information

Disclaimer: I'm new to Sage.

Is it possible to indicate the period when plotting periodic functions?

According to my trig book, for example, "you have a graph that has four complete cycles of the sine curve in the space where you would usually find one." one", as shown here: f(x)=-2sin(4(x+pi/4))+3 plot(f(x),(x,-2pi,2pi))

Is there a way to indicate each period? If not, could I approximate it with ticks (e.g., plot(x**2, (x,0,3), ticks=[[1,2.5],pi/2], tick_formatter=[["$x_1$","$x_2$"],pi]))

Plots: display period information

Disclaimer: I'm new to Sage.

Is it possible to indicate the period when plotting periodic functions?

According to my trig book, for example, "you have a graph that has four complete cycles of the sine curve in the space where you would usually find one", as shown here: f(x)=-2sin(4(x+pi/4))+3 plot(f(x),(x,-2pi,2pi)) here:

f(x)=-2*sin(4*(x+pi/4))+3
plot(f(x),(x,-2*pi,2*pi))

Is there a way to indicate each period? If not, could I approximate it with ticks (e.g., ticks? Something like:

plot(x**2, (x,0,3), ticks=[[1,2.5],pi/2], tick_formatter=[["$x_1$","$x_2$"],pi]))

tick_formatter=[["$x_1$","$x_2$"],pi]))

Plots: display period information

Disclaimer: I'm new to Sage.

Is it possible to indicate the period when plotting periodic functions?

According to my trig book, for example, "you have a graph that has four complete cycles of the sine curve in the space where you would usually find one", as shown here:

f(x)=-2*sin(4*(x+pi/4))+3
plot(f(x),(x,-2*pi,2*pi))

Is there a way to indicate each period? If not, could I approximate it with ticks? Something like:

plot(x**2, (x,0,3), ticks=[[1,2.5],pi/2], tick_formatter=[["$x_1$","$x_2$"],pi]))
f(x)=-2*sin(4*(x+pi/4))
P=points([(pi,0),(2*pi,0)], pointsize=40, color='red')
P+plot(f(x),(x,-2*pi,2*pi), ticks=pi/2, tick_formatter=pi)

Plots: display period information

Disclaimer: I'm new to Sage.

Is it possible to indicate the period when plotting periodic functions?

According to my trig book, for example, "you have a graph that has four complete cycles of the sine curve in the space where you would usually find one", as shown here:

f(x)=-2*sin(4*(x+pi/4))+3
plot(f(x),(x,-2*pi,2*pi))

Is there a way to indicate each period? If not, could I approximate it with ticks? Something like:

f(x)=-2*sin(4*(x+pi/4))
P=points([(pi,0),(2*pi,0)], pointsize=40, color='red')
P+plot(f(x),(x,-2*pi,2*pi), ticks=pi/2, tick_formatter=pi)