function createSeparatrixCurves(controller) {
    /* q will run from 0 to 1, map it to the correct range of b */
    var bOfq = function(q){ return bMax(controller.energy)*(-1. + 2. * q); };
    var sepA = controller.poincbox.create('curve',
                 [bOfq,
                  function(q){ return lbSeparatrix(controller.energy, bOfq(q));},
                  0., 1.]);
    var sepB = controller.poincbox.create('curve',
                 [bOfq,
                  function(q){ return -lbSeparatrix(controller.energy, bOfq(q));},
                  0., 1.]);

    // Make them unclickable
    sepA.hasPoint = function(){return false; };
    sepB.hasPoint = function(){return false; };
  }
// Add the separatrix curves to the plot
Add the separatrix curves to the plot
Add the separatrix curves to the plot
function createSeparatrixCurves(controller) {
    var bOfq = function(q){ return bMax(controller.energy)*(-1. + 2. * q); };
    var sepA = controller.poincbox.create('curve',
                 [bOfq,
                  function(q){ return lbSeparatrix(controller.energy, bOfq(q));},
                  0., 1.]);
    var sepB = controller.poincbox.create('curve',
                 [bOfq,
                  function(q){ return -lbSeparatrix(controller.energy, bOfq(q));},
                  0., 1.]);
    sepA.hasPoint = function(){return false; };
    sepB.hasPoint = function(){return false; };
  }
function createSeparatrixCurves ( controller ) { var bOfq = function ( q ) { return bMax ( controller . energy ) * ( - 1. + 2. * q ) ; } ; var sepA = controller . poincbox . create ( 'curve' , [ bOfq , function ( q ) { return lbSeparatrix ( controller . energy , bOfq ( q ) ) ; } , 0. , 1. ] ) ; var sepB = controller . poincbox . create ( 'curve' , [ bOfq , function ( q ) { return - lbSeparatrix ( controller . energy , bOfq ( q ) ) ; } , 0. , 1. ] ) ; sepA . hasPoint = function ( ) { return false ; } ; sepB . hasPoint = function ( ) { return false ; } ; }
Add the separatrix curves to the plot
Add the separatrix curves to the plot
/* q will run from 0 to 1, map it to the correct range of b */ // Make them unclickable