css.php

SAGE

sageCos

Approaching Cosine

Approaching Cosine

sage: g = Graphics()
sage: var(‘x’)
sage: f(x) = cos(x)
sage: g = plot(f(x),(x, -3.5, 3.5), ymin=-.2,hue=((1/10)),alpha=(1),legend_label=”$cos$”)
sage: for i in range(13):
… p = plot(f.taylor(x, 0, (i+1)),(x, -3.5, 3.5),ymin=-1,hue=((i/10)),alpha=((i+3)/26))
… g = g + p

sage: g += text(‘$y=\cos(x)$’, (-.1, 1.1), color=’black’,rotation=0)
sage: g += text(‘The first 13 Taylor approximations’, (0, 1.5), fontsize=12, rgbcolor=(.2,.3,.4))
sage: g.show(dpi=200, axes=false,aspect_ratio=1,legend_loc=’lower center’)

Bookmark the permalink.

One Response to sageCos

  1. g says:

    I was wondering if you ever considered changing the layout
    of your website? Its very well written; I love what
    youvegot to say. But maybe you could a little
    more in the way of content so people could connect with it better.

    Youve got an awful lot of text for only having one or two images.
    Maybe you could space it out better?

Leave a Reply

Your email address will not be published. Required fields are marked *