Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
course_planning:simulations:binarystar [2014/07/09 17:56] – caballero | course_planning:simulations:binarystar [2014/07/10 18:22] – caballero | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Simulation of a Binary Star System ====== | ====== Simulation of a Binary Star System ====== | ||
- | <PRELOAD> | + | {{url>http://www.pa.msu.edu/~caballero/teaching/simulations/BinaryStar.html 600px,425px |Simulation of a Binary Star}} |
- | # Step 1: load several library files in < | + | |
- | | + | |
- | # /js/jquery.min.js (not required since DokuWiki 2012-01-25 Angua uses jQuery) | + | |
- | | + | |
- | </ | + | |
- | < | + | Made with [[http://www.glowscript.org|GlowScript]]. |
- | <!-- Step 2 : prepare chart box (canvas) --> | + | |
- | < | + | |
- | <div id=" | + | |
- | </ | + | |
- | + | ||
- | < | + | |
- | // Step 3 : inline JavaScript to produce a chart | + | |
- | // ! do not forget to replace "$.jqplot" | + | |
- | var data = [[0,0.0],[1,1.0],[2,1.414], | + | |
- | jQuery.jqplot(' | + | |
- | </JS> | + |