Feeds:
Posts
Comments

Posts Tagged ‘Graphics’

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 »

No comments! It was beautiful p = plot(sin(x), (x,-5, 5), thickness=2, color=’red’) for n in xrange(1,20): p += plot((1-n/20)*sin(x), (x,-pi,0), thickness=0, fill=’axis’, fillcolor=’blue’, fillalpha=.01) p += plot((1-n/20)*sin(x), (x,0,pi), thickness=0, fill=’axis’, fillcolor=’gray’, fillalpha=.01) show(p, figsize=10,ticks=pi/3,tick_formatter=pi, fontsize=16) reset() var(‘x’) f(x) = sin(x) p = plot(f(x), (x,-5, 5), thickness=2, color=’red’) for n in xrange(1,20): p += plot(((n-1)/20)*sin(x), (x,-pi,0), [...]

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 »

Older Posts »

Follow

Get every new post delivered to your Inbox.