Differences between revisions 6 and 7
Revision 6 as of 2011-08-15 18:57:04
Size: 965
Editor: jason
Comment:
Revision 7 as of 2011-08-15 18:57:36
Size: 2508
Editor: jason
Comment:
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

   1 def syntax(highlight):
   2     print "on"
   3     return None

   1   public void main(String[] args]){
   2      System.out.println("Hello world!");
   3   } 

Linking

HelpOnEditing InterWiki

http://moinmoin.wikiwikiweb.de/ Python Verbatim Link

http://c2.com/sig/wiki.gif

Smileys

/!\ Alert

Lists

Bullet

  • first
    1. nested and numbered
    2. numbered lists are renumbered
  • second
  • third blockquote
    • deeper

Glossary

Term
Definition

Drawing

[ATTACH]

Heading 1

Heading 2

Heading 3

Heading 4

sandbox (last edited 2011-08-15 19:05:25 by jason)