A=242641, B=2.828427, C=1.414214. VV=C^2-A^2-B^2/(-2*A*B) VV calculated, and printed, in QPC2 =1. VV calculated on a calculator =-24.00000071/-24.00000071=1.
Used in QPC2 in RR=ACOS(VV) produces the error message "At line 2345 :1 error in expression". Change to VV=INT(.....), and no error message is produced. Change to VV=INT(.....)+1E-10, and no error message is produced. Change to VV=INT(.....)+1E-9, and the error message is produced. Alternatively precede RR=ACOS(VV) with IF VV>1 THEN VV=1 together with IF VV<-1 THEN VV-1. Has anyone else experienced this problem? Colin McKay 34 Taylor Avenue Kilbarchan Johnstone Renfrewshire PA10 2LS Tel/fax 01505 70 4471 _______________________________________________ QL-Users Mailing List
