965
Comment:
|
2508
|
Deletions are marked like this. | Additions are marked like this. |
Line 5: | Line 5: |
<b>hi</b> | <h2>Interact Example</h2> <div id="singlecell-interact"><script type="text/code">var('x') x0 = 0 f(x) = sin(x)*e^(-x) p = plot(f,(x,-1,5), thickness=2) dot = point((x0,f(x=x0)),pointsize=80,rgbcolor=(1,0,0)) @interact def _(order=(1..12)): ft = f.taylor(x,x0,order) pt = plot(ft,(x,-1, 5), color='green', thickness=2) html('$f(x)\;=\;%s$'%latex(f(x))) html('$\hat{f}(x;%s)\;=\;%s+\mathcal{O}(x^{%s})$'%(x0,latex(ft(x)),order+1)) show(dot + p + pt, ymin = -.5, ymax = 1) </script></div> Or just edit the box below. <div id="singlecell-test">factorial(30) # edit me</div> <!-- Code to make the above divs actually work --> <script type="text/javascript" src="http://sagemath.org:5467/static/jquery-1.5.min.js"></script> <script type="text/javascript" src="http://sagemath.org:5467/embedded_singlecell.js"></script> <script type="text/javascript"> $(function() { // load only when the page is loaded var makecells = function() { singlecell.makeSinglecell({ inputDiv: "#singlecell-test", editor: "codemirror", hide: ["computationID","files","messages","sageMode"], replaceOutput: true}); singlecell.makeSinglecell({ inputDiv: "#singlecell-interact", template: singlecell.templates.minimal, evalButtonText: "Explore Taylor Polynomials"}); } singlecell.init(makecells); // load Single Cell libraries and then // initialize two Single Cell instances }); </script> |
mcm_wiki (Back)
Interact Example
Or just edit the box below.factorial(30) # edit me
Formatting
italic bold typewriter
backtick typewriter (configurable)
bigger smaller
preformatted some more and some more lines too
Linking
http://moinmoin.wikiwikiweb.de/ Python Verbatim Link
Image Link
Smileys
Alert
Lists
Bullet
- first
- nested and numbered
- numbered lists are renumbered
- second
- third blockquote
- deeper
Glossary
- Term
- Definition
Drawing
Heading 1
Heading 2
Heading 3