home *** CD-ROM | disk | FTP | other *** search
- /*
- ### procedure for computing lyaupunov exponents ###
- */
- #include <stdio.h>
-
- void lyap_go_proc()
- {
- void graph_proc(),lyap_compute();
- extern FILE *fp_graph_tochild;
- extern int graph_logx,graph_logy;
- extern int tser_len;
- extern char string2[],string[],source_dir[];
-
- all_reset();
-
- /* set log flags */
- if(graph_logx ==1 && graph_logy ==1)
- sprintf(string,"-x l -y l");
- else if(graph_logx ==1)
- sprintf(string,"-x l");
- else if(graph_logy ==1)
- sprintf(string,"-y l");
- else
- sprintf(string,"");
-
- sprintf(string2,"%s/bin/sgraph %s",source_dir,string);
- graph_proc(string2);
- lyap_compute(fp_graph_tochild);
- fclose(fp_graph_tochild);
- }
-