Re: Beginer needing help
- From: vexx <vexxmiocMAKNI@xxxxxxxxx>
- Date: Tue, 30 May 2006 14:28:16 +0200
here is the code(i decidet to set interval from 1 to 7):
program bla
REAL(KIND=4) :: a = 1.0_4, b = 7.0_4
REAL(KIND=8) :: eps = 1.0D-8
REAL(KIND=8) :: del = 1.0D-7
REAL(KIND=8) :: x,y
LOGICAL :: llm
EXTERNAL fun
CALL RMINFC(fun,a,b,eps,del,x,y,llm)
IF (llm) THEN
PRINT *,'Minimum is = ',x
PRINT *,'y(x_min) is = ',y
END IF
END PROGRAM
FUNCTION fun (x) RESULT (y)
REAL(KIND=4) :: x,y,pi=3.1415926535897932385_4
y = SIN(pi*x/180)/x
END FUNCTION
but the problem is i think now with library. when i type in command prompt: gfortran new.f90 -o new.exe -lmathlib it says cannot find -mathlib. so does that mean that my compiler does not have a CERN library ad if that's the problem how do i get it?
.
- Follow-Ups:
- Re: Beginer needing help
- From: Steven G. Kargl
- Re: Beginer needing help
- From: Louis Krupp
- Re: Beginer needing help
- From: e p chandler
- Re: Beginer needing help
- References:
- Beginer needing help
- From: vexx
- Re: Beginer needing help
- From: vexx
- Re: Beginer needing help
- From: e p chandler
- Beginer needing help
- Prev by Date: Re: How to trace the memory use
- Next by Date: Re: NaN in intel fortran 9.0 for windows integrated with VS.Net
- Previous by thread: Re: Beginer needing help
- Next by thread: Re: Beginer needing help
- Index(es):