# include # include # include # include "eispack.h" #include "eispack.c" //Resuelve el rotor 1D tomando la base exp(i*m*phi) //Variables globales double pi=3.141592653589793238; double hb = 1.05459e-34; //h barra, pero no se usa, las energías se dan en unidades de hb^2/(2*Inercia) int l=40; //L maximo ( -l <= m <= l, i = m+l, 0<=i"); //getchar(); //Dibuja Niveles xmin=-180; xmax=180; ymin=-fabs(V0)*1.1; ymax=fabs(V0)*4; pflevels=fopen("R_1D_levels.gnp","w"); fprintf(pflevels,"unset key"); fprintf(pflevels,"\nset xrange [%4.0lf:%4.0lf]",xmin,xmax ); fprintf(pflevels,"\nset yrange [%lf:%lf]",ymin,ymax ); fprintf(pflevels,"\nplot %lf lt -1 lw 2",w[0]); fprintf(pflevels,"\n# Autovalores (Niveles de energia * 2I/hb^2)"); for(i=1;i=0)fprintf(pfun,"\n %lf %lf",phi, psire); else fprintf(pfun,"\n %lf %lf",phi, psiim); } fprintf(pfun,"\nend"); } fclose(pfun); system("C:/gnuplot/bin/gnuplot.exe R_1D_func.gnp -"); //getchar(); free ( r ); return; }