top of page

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <div id="glowscript" class="glowscript"> <script type="text/javascript" src="https://s3.amazonaws.com/glowscript/lib/jquery/2.1/jquery.min.js"></script> <script type="text/javascript" src="https://s3.amazonaws.com/glowscript/lib/jquery/2.1/jquery-ui.custom.min.js"></script> <script type="text/javascript" src="https://s3.amazonaws.com/glowscript/package/glow.2.7.min.js"></script> <script type="text/javascript"> <!--//--><![CDATA[//><!-- ;(function() { var __rt=srequire('streamline/lib/callbacks/runtime').runtime(__filename, false),__func=__rt.__func,__cb=__rt.__cb; function main(_) {var __frame = { name: "main", line: 1 }; return __func(_, this, arguments, main, 0, __frame, function __$main() { scene = canvas(); scene.width=600; scene.height=600; var N=3; r1=7; r2=2; fx= function(t) {var ff=(r1+r2*Math.cos(40*t))*Math.cos(t);return ff} fz= function(t) {var ff=r2*Math.sin(40*t);return ff} fy= function(t) {var ff=(r1+r2*Math.cos(40*t))*Math.sin(t);return ff} atom=sphere(); atom.size=vec(1,1,1); atom.color=vec(1,0,0); attach_trail(atom, { retain:1600}); atom.pos=vec(r1,0,0); atom1=sphere(); atom1.size=vec(1,1,1); atom1.color=vec(1,1,0); attach_trail(atom1,{retain:1600}); atom1.pos=vec(r1,0,0); t=0;dt = 0.005; return (function ___(__break) { var __more; var __loop = __cb(_, __frame, 0, 0,function __$main() { __more = false; var __1 = true; if (__1) {return rate(60, __cb(_, __frame, 64, 4, function __$main() { xx=fx(t); yy=fy(t); zz=fz(t); atom.pos=vec(xx,yy,zz); atom1.pos=vec(xx+r1,zz,yy); t=t+dt; scene.forward = vec(cos(t/2),cos(t/2),1["-u"]()) while (__more) { __loop(); }; __more = true; }, true)); } else { __break(); } ; }); do { __loop(); }while (__more); __more = true; })(_); });}; main;;$(function(){ window.__context = { glowscript_container: $("#glowscript").removeAttr("id") }; main(__func) })})() //--><!]]></script> </div> </body> </html>

The Science & 

Mathematics University

© 2023 by Scientist Personal. Proudly created with Wix.com

  • Facebook Clean Grey
  • Twitter Clean Grey
  • LinkedIn Clean Grey
bottom of page