- #1
shei7141
- 13
- 0
Can some1 kindly help me understand the following code, I am trying to translate the following code in VBA:
Thanks in advance
FFLC = FLC ...i understand this part
ANGLE=PI/6 !Suppose 30 Degrees ...i understand this part
Do 21800 I=i,5 ...Don't understand this
FLC=FFLC-COS(ANGLE)*NDIA
FLE=SQRT(FLB*FLB+FLC*FLC) ...i understand this part
21800 ANGLE=ATAN2(FLC,FLB)...i understand this part
if (R.NE.o.)D=R/2.+NDIA/2...i understand this part
FLCUT = ... ...i understand this part
LE=IFIX(FLE)...Don't understand this
My answer for FLCUT is 2387 when using the 30 degree angle but fortran result 2397 (after using the iteration which I don't understand)
Can someone please help me understand this please?
Regards
Thanks in advance
FFLC = FLC ...i understand this part
ANGLE=PI/6 !Suppose 30 Degrees ...i understand this part
Do 21800 I=i,5 ...Don't understand this
FLC=FFLC-COS(ANGLE)*NDIA
FLE=SQRT(FLB*FLB+FLC*FLC) ...i understand this part
21800 ANGLE=ATAN2(FLC,FLB)...i understand this part
if (R.NE.o.)D=R/2.+NDIA/2...i understand this part
FLCUT = ... ...i understand this part
LE=IFIX(FLE)...Don't understand this
My answer for FLCUT is 2387 when using the 30 degree angle but fortran result 2397 (after using the iteration which I don't understand)
Can someone please help me understand this please?
Regards