IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 6, 2004, 12:34:06 PM (22 years ago)
Author:
desonia
Message:

astyle fixed?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataManip/tst_psMinimize02.c

    r1185 r1406  
    4444    if (whichParamDeriv == 0) {
    4545        tmp = 20.0 * (x - P0);
    46     } else if (whichParamDeriv == 1) {
    47         tmp = 40.0 * (y - P1);
    48     }
     46    } else
     47        if (whichParamDeriv == 1) {
     48            tmp = 40.0 * (y - P1);
     49        }
    4950
    5051    //    printf("--------- myFuncDeriv((%.1f %.1f) %.1f %.1f (%d)) is %.1f ---------\n",
     
    8384        tmp = 1.0;
    8485        tmp = x;
    85     } else if (whichParamDeriv == 1) {
    86         tmp = x;
    87         tmp = x*x;
    88     } else if (whichParamDeriv == 2) {
    89         tmp = y;
    90         tmp = y*y;
    91     } else if (whichParamDeriv == 3) {
    92         tmp = x * x * y;
    93     }
     86    } else
     87        if (whichParamDeriv == 1) {
     88            tmp = x;
     89            tmp = x*x;
     90        } else
     91            if (whichParamDeriv == 2) {
     92                tmp = y;
     93                tmp = y*y;
     94            } else
     95                if (whichParamDeriv == 3) {
     96                    tmp = x * x * y;
     97                }
    9498
    9599    printf("--------- myFuncDeriv((%.1f %.1f) %.1f %.1f %.1f %.1f (%d)) is %.1f ---------\n",
Note: See TracChangeset for help on using the changeset viewer.