userxyz Member U Join Date May 2002 Location any Posts 2,768 May 4, 2009 #1 Math problems in SCL, why does this happen ? Thanks in forward, Kind regards, Gerry
rdrast Lifetime Supporting Member Join Date Apr 2003 Location South Carolina Lowcountry Posts 5,544 May 4, 2009 #2 Well, it looks like you are using degrees, but the sin function is expecting radians (The sin of 90 Radians is 0.89399...).
Well, it looks like you are using degrees, but the sin function is expecting radians (The sin of 90 Radians is 0.89399...).
userxyz Member OP U Join Date May 2002 Location any Posts 2,768 May 4, 2009 #3 damn Damn, not the first time I make this mistake rdrast said: Well, it looks like you are using degrees, but the sin function is expecting radians (The sin of 90 Radians is 0.89399...). Click to expand...
damn Damn, not the first time I make this mistake rdrast said: Well, it looks like you are using degrees, but the sin function is expecting radians (The sin of 90 Radians is 0.89399...). Click to expand...
shooter Member S Join Date Sep 2002 Location duketown Posts 2,711 May 4, 2009 #4 answer within 15 minutes good god. en da vur ene belg ( net als ik trouwens)
L D[AR2P#0.0] Lifetime Supporting Member L Join Date Nov 2006 Location UK Posts 6,701 May 4, 2009 #5 Combo said: Damn, not the first time I make this mistake Click to expand... Write your own sine function that accepts degrees as an input.
Combo said: Damn, not the first time I make this mistake Click to expand... Write your own sine function that accepts degrees as an input.
userxyz Member OP U Join Date May 2002 Location any Posts 2,768 May 5, 2009 #6 ahum uw vlagje klopt niet shooter said: answer within 15 minutes good god. en da vur ene belg ( net als ik trouwens) Click to expand...
ahum uw vlagje klopt niet shooter said: answer within 15 minutes good god. en da vur ene belg ( net als ik trouwens) Click to expand...
userxyz Member OP U Join Date May 2002 Location any Posts 2,768 May 5, 2009 #7 okay I did, thanks, INPUT: REAL; OUTPUT: REAL; PI: REAL; BEGIN PI:= 3.14159 OUTPUT:= SIN(INPUT * (PI / 180)) END_FUNCTION L D[AR2 said: Write your own sine function that accepts degrees as an input. Click to expand...
okay I did, thanks, INPUT: REAL; OUTPUT: REAL; PI: REAL; BEGIN PI:= 3.14159 OUTPUT:= SIN(INPUT * (PI / 180)) END_FUNCTION L D[AR2 said: Write your own sine function that accepts degrees as an input. Click to expand...