explain the following Code.

Hi there,

 

Can someone explain the following code line in Gauss;

ch1=1; ch2=1;   /* this is the name of the variable
           the vcf adopts after a iteration */

exig=0.0001;  /* this represents the max value I require for vcf */

/* the idea of this is to make ch1=vcf as small as exig */

do while  ch1>exig;

ystart=rndu(1,1);   /* initial values for yl */

{bend, vcf, cnv} =simplex(&ylow, ystart, 2);

 

ch1=vcf;

if bend<0;

ch1=1;

endif;

cls;

endo;

Can someone explain help me in interpreting the code above?

 

 

Many Thanks,

 

 

1 Answer



0



ch1=1; ch2=1;   /* this is the name of the variable
           the vcf adopts after a iteration */

exig=0.0001;  /* this represents the max value I require for vcf */

/* the idea of this is to make ch1=vcf as small as exig */

//Run code between 'do while' and 'endo' until,
// 'chi' is less than or equal to 'exig'
do while  ch1>exig;

    //Set 'ystart' equal to a scalar random
    //number from a uniform distribution between 0 and 1
    ystart=rndu(1,1);   /* initial values for yl */

    //Call the user defined 'simplex' procedure
    //The first input, '&ylow' is most likely
    //a pointer to a user defined procedure named 'ylow'
    //'simplex' will return 3 variables: bend, vcf and cnv
    {bend, vcf, cnv} =simplex(&ylow, ystart, 2);

    ch1=vcf;

    if bend<0;
        ch1=1;
    endif;

    //Clear the GAUSS input/output window of all
    //printed output
    cls;

endo;

aptech

1,393

Your Answer


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 30 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy