Advertisement
cherurg

circle.skeleton

Jan 28th, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var plot = new Plotter("plot", {
  2.     left: -3,
  3.     right: +3,
  4.     bottom: -3,
  5.     top: 3,
  6.     width: 600,
  7.     height: 600
  8. });
  9.  
  10. var borders = {
  11.     left: -1,
  12.     right: 1
  13. };
  14.  
  15. plot.addFunc(function (x) {
  16.     return Math.sqrt(1 - x*x);
  17. }, borders);
  18.  
  19. plot.addFunc(function (x) {
  20.     return -Math.sqrt(1 - x*x);
  21. }, borders);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement