Package com.nr.min

Examples of com.nr.min.Frprmn


    // Test Frprmn
    System.out.println("Testing Frprmn");

    Funcd_Frprmn fd = new Funcd_Frprmn();
    Frprmn frprmn = new Frprmn(fd);
    p[0]=p[1]=p[2]=0.1;
    p=frprmn.minimize(p);
    f0=frprmn.fret;
    d0=sqrt(SQR(p[0])+SQR(p[1])+SQR(p[2]));

    for (i=0;i<N;i++) {
      theta=pi*i/N;
      phi=pi*i/N;
      p[0]=sin(phi)*cos(theta);
      p[1]=sin(phi)*sin(theta);
      p[2]=cos(phi);
      p=frprmn.minimize(p);
      f=frprmn.fret;
      d=sqrt(SQR(p[0])+SQR(p[1])+SQR(p[2]));
//      System.out.println("     " << abs(d-d0) << " " << abs(f-f0));

      localflag = localflag || abs(d-d0) > sbeps1;
View Full Code Here

TOP

Related Classes of com.nr.min.Frprmn

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.