Bulletin number: 334 Products affected: D700D Description: nested func calls to math libraries Component: compiler Date: Wed Jul 11 16:41:56 BST 1990 ----- The following code when compiled for a T4 gives identical answers for the two methods of evaluating the angle v. However, when compiled for a T8 the first method yields the same result as for a T4, but the second method gives a different incorrect result. The workaround is not to nest function calls to the dblmath library. This problem is fixed in D700E. #USE dblmath #USE snglmath #USE userio REAL64 s,t,u,v,temp0,temp1: INT key SEQ s,t,u := 0.1(REAL64),0.2(REAL64),0.3(REAL64) -- Method one temp0 := s/DSIN(u) temp1 := t/DSIN(u) v := DATAN2(temp0, temp1) write.real64(screen,v,0,0) --Method two v := DATAN2(s/DSIN(u),t/DSIN(u)) newline(screen) write.real64(screen,v,0,0) keyboard ? key SAMPLE OUTPUT: T4 T8 1.1071487177940904 1.1071487177940904 1.1071487177940904 0.46364760900080614