LOGO
General Discussion Undecided where to post - do it here.

Reply to Thread New Thread
Old 04-10-2007, 04:29 AM   #1
Katoabralia

Join Date
Oct 2005
Posts
403
Senior Member
Default
Code:
Code
      IMPLICIT DOUBLE PRECISION(A, T, X-Z)       IMPLICIT INTEGER(B-S, U-W)                     COMMON/PARAMS/SCOEFF(5),SMAX(5),X,Z       SAVE/PARAMS/              COMMON/VARS/S(5),W       SAVE/VARS/              SMAX(1)=8       SMAX(2)=12       SMAX(3)=16       SMAX(4)=20       SMAX(5)=24              PRINT *, "Enter E1"       READ *, SCOEFF(1)              PRINT *, "Enter E2"       READ *, SCOEFF(2)              PRINT *, "Enter E3"       READ *, SCOEFF(3)              PRINT *, "Enter E4"       READ *, SCOEFF(4)              PRINT *, "Enter E5"       READ *, SCOEFF(5)              PRINT *, "Enter x"       READ *, X              PRINT *, "Enter Z"       READ *, Z              T = TMIN()              PRINT *, S(1), S(2), S(3), S(4), S(5), W, T              RETURN       END              DOUBLE PRECISION FUNCTION TMIN() 			       IMPLICIT DOUBLE PRECISION(A, T, X-Z)       IMPLICIT INTEGER(B-S, U-W)              DIMENSION SMIN(5)              COMMON/PARAMS/SCOEFF(5),SMAX(5),X,Z       SAVE/PARAMS/              COMMON/VARS/S(5),W       SAVE/VARS/        TMIN = 1.0D10              DO 103 I1=0,1       DO 113 I2=0,1       DO 123 I3=0,1       DO 133 I4=0,1       DO 143 I5=0,1       DO 153 W=1,9 	S(1)=I1*SMAX(1) 	S(2)=I2*SMAX(2) 	S(3)=I3*SMAX(3) 	S(4)=I4*SMAX(4) 	S(5)=I5*SMAX(5) 	T=TCALC() 	IF(T.LE.TMIN) THEN 		TMIN=T 		DO 173 J=1, 5       		 SMIN(J)=S(J)  173	     CONTINUE 		WMIN=W 	ENDIF  153 CONTINUE  143 CONTINUE  133 CONTINUE  123 CONTINUE  113 CONTINUE  103 CONTINUE   	DO 183 J=1, 5       	 S(J)=SMIN(J)  183  CONTINUE 	 W=WMIN 			 	 END 			 	DOUBLE PRECISION FUNCTION TCALC() 		 	IMPLICIT DOUBLE PRECISION(A, T, X-Z)         IMPLICIT INTEGER(B-S, U-W)                COMMON/PARAMS/SCOEFF(5),SMAX(5),X,Z         SAVE/PARAMS/                COMMON/VARS/S(5),W         SAVE/VARS/                TCALC = 1.0D10         C = CCALC(W,Z)         A = ACALC()         H = HCALC()         IF(H.LT.1) GOTO 104         TCALC = C*A/H         104	RETURN          END 			 			 	INTEGER FUNCTION CCALC(W,Z) 	         DOUBLE PRECISION Z         INTEGER W                CCALC = INT(9.0/(W*(1.0+Z))-0.00001)+1           END                INTEGER FUNCTION HCALC()                IMPLICIT DOUBLE PRECISION(A, T, X-Z)         IMPLICIT INTEGER(B-S, U-W)                COMMON/PARAMS/SCOEFF(5),SMAX(5),X,Z         SAVE/PARAMS/                COMMON/VARS/S(5),W         SAVE/VARS/                HCALC = 0         DO 105 I = 1, 5       	  HCALC=HCALC+SCOEFF(I)*S(I)  105 CONTINUE   	END 			 	DOUBLE PRECISION FUNCTION ACALC() 			 	IMPLICIT DOUBLE PRECISION(A, T, X-Z)         IMPLICIT INTEGER(B-S, U-W)                COMMON/PARAMS/SCOEFF(5),SMAX(5),X,Z         SAVE/PARAMS/                COMMON/VARS/S(5),W         SAVE/VARS/                ACALC = X         DO 106 I = 1, 5       	 ACALC=ACALC+120.0*W*S(I)  106 CONTINUE   	END

Katoabralia is offline


Old 04-10-2007, 05:34 AM   #2
frkksptn

Join Date
Nov 2005
Posts
442
Senior Member
Default
physics language
frkksptn is offline


Old 04-10-2007, 07:03 AM   #3
Sotmoigma

Join Date
Oct 2005
Posts
403
Senior Member
Default
graph!
Sotmoigma is offline


Old 04-10-2007, 12:31 PM   #4
TornadoPD

Join Date
Oct 2005
Posts
414
Senior Member
Default
Originally posted by Lul Thyme


On the boundary in general, if the boundary isn't bounded by hyperplanes like in this case.

Also that's IF there is an extremum it has to be on the boundary. You need compactness to omit this part IIRC.

I guess I knew this, I never thought about what derivatives of quotients of multivariable linar functions would look like.

I guess all the S variable are integers each so all of this is moot since there's only a finite number of possibilities.
(Except for w) w is bounded above by 9

And we're on a closed, bounded subset of R^n so bolzano-weierstrass tells me what I need to know here...
TornadoPD is offline


Old 04-10-2007, 03:38 PM   #5
BEKREUNSEPBERw

Join Date
Oct 2005
Posts
388
Senior Member
Default
Is this something to do with CIV?
BEKREUNSEPBERw is offline


Old 04-10-2007, 04:09 PM   #6
Thorwaywhobia

Join Date
Oct 2005
Posts
493
Senior Member
Default
Probably.

Not that I care much though
Thorwaywhobia is offline


Old 04-10-2007, 04:13 PM   #7
Xfxhbcxp

Join Date
Nov 2005
Posts
428
Senior Member
Default
The unfortunate thing for MRT is that none of that work is actually applicable to CIV, if that is indeed what MRT is using it for.
Xfxhbcxp is offline


Old 04-10-2007, 04:21 PM   #8
plantBanceper

Join Date
Oct 2005
Posts
375
Senior Member
Default


I'm suprised MRT didn't know about the function minimisation anway. And we all know you like to show off your superiority KH
plantBanceper is offline


Old 04-10-2007, 05:11 PM   #9
traithJah

Join Date
Oct 2005
Posts
611
Senior Member
Default
No real cygwin or djgpp experience.

But nauty seems to compile and work properly under a *nix environment without any problem.

Did you manage to unzip/untar the file yet?
traithJah is offline


Old 04-10-2007, 05:29 PM   #10
Duaceanceksm

Join Date
Oct 2005
Posts
498
Senior Member
Default
Originally posted by KrazyHorse
Once you've done that, open a terminal in your emulator. cd to the nauty22 directory (or whatever version you have). type in "./configure" and hit enter. wait. shouldn't have any errors (i'm assuming your emulator comes with a functioning version of gcc). then type in "make all" and hit enter. wait.

now you should be able to run the included utilities. See I'm really new to this.
I played around in the emulator with a UNIX tutorial.
I was able to cd around a bit and create folders etc...
But I couldn't understand how my "root" or "home" was related to my actual hard drive.
Meaning I couldn't find my nauty directory from the emulator.
Maybe I needed to edit what my root was before running the emulator?

EDIT:
Anyway, for now, I'll try to see if I can avoid the whole UNIX business and try to compile it manually somehow.
Duaceanceksm is offline


Old 04-10-2007, 06:34 PM   #11
tpdirorg

Join Date
Nov 2005
Posts
372
Senior Member
Default
Originally posted by Krill


I'm suprised MRT didn't know about the function minimisation anway. And we all know you like to show off your superiority KH im in a mid level algebra class right now. we are solving for slopes of graphs. hence my total ignorance of the vocabulary and process of solving the question.
tpdirorg is offline


Old 04-10-2007, 06:51 PM   #12
BrianGoldsmith

Join Date
Oct 2005
Posts
479
Senior Member
Default
Uhhh...no, I don't think so. I think that once you've compiled into an executable its ability to run is highly platform dependent. That's why I had to compile my fortran routine under a Windows compiler on a win-32 system to get a win-32 executable. This executable will not run under *nix, and vice versa.

But I'm not exactly an expert in this. Or even competent.
BrianGoldsmith is offline


Old 04-10-2007, 07:00 PM   #13
reiseebup

Join Date
Oct 2005
Posts
382
Senior Member
Default
Originally posted by Lul Thyme


Btw I'm kind of interested..
Was it civ-related?
Can you explain where the question came from?

Also, how old are you?
Unless I have you confused with someone else, I thought you were over 20. It's a bit surprising to see people studying algebra at that age. By then, they have either gone through it or abandoned forever.
Although in any case, it's never too late for more math It IS in fact Civ related.

It has to do with chopping down forests.
reiseebup is offline



Reply to Thread New Thread

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

All times are GMT +1. The time now is 06:04 AM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 PL2
Design & Developed by Amodity.com
Copyright© Amodity