Feeds:
Posts
Comments

Posts Tagged ‘Plotting’

Sage beginner’s guide is a book by  Craig Finch, published recently by PACKT publishing. After spending two weeks looking at different aspects of the book, I can say with property that this is an excellent book, an I’ll recommend it for beginners to medium experienced SAGE users. Since this is the first book I review, [...]

Read Full Post »

After my last post, about Fouries Series, I decided to give a try to the interactive mode of SAGE. What did I do? First I check out the examples worked at the Wiki page. In the section of graphics I got inspired from the post Interactive 2D Plotting by Timothy Clemans and Newton’s Method by [...]

Read Full Post »

Inspired by a post in sage-devel (or support) group of SAGE, I came along with this few lines which allows me to plot a Fourier Series Approximation of the line, to a given order, sage: reset() sage: var(‘x,i,n’) (x,i,n) sage: def b(n): … return 2.*(-1)^(n+1)/n … sage: def f(x,n): … return sum(b(i)*sin(i*x),i,1,n) … sage: p [...]

Read Full Post »

Looking on the notebook worksheets publish on sagenb I found a very interesting application of the interactive mode, Interactive. Since one can not look the result of the published notebooks, I use its code to playing around a little bit, so here are the plots. The default function to be integrated is , the interval [...]

Read Full Post »

This trick can be found at the plot function documentation, and it was a new command from SAGE(math) v.4.5 or v.4.6. Say we want to plot the sine function, plot(sin, -7, 7, axes_labels=['$x$','$\\sin(x)$'], fontsize=14, color=’red’) we’ll get Now, let’s change the ticks, plot(sin(x), (x, -7, 7), ticks=pi/2, tick_formatter=pi, axes_labels=['$x$','$\\sin(x)$'], fontsize=14, color=’red’) We’ll get, One can [...]

Read Full Post »

Older Posts »

Follow

Get every new post delivered to your Inbox.