www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - phobos: lost precision in complex.c

The values were stored in "long double" but sqrt was used in stead of the
correct sqrtl.

Thomas


begin 666 phobos__complex_precision.diff
M+2TM(&1M9"]S<F,O<&AO8F]S+VEN=&5R;F%L+V-O;7!L97 N8PDR,# T+3 Y
M+3(Q(#$Y.C$T.C4X+C P,# P,# P," K,#(P, HK*RL 9&UD+W-R8R]P:&]B
M;W-?;F5U+VEN=&5R;F%L+V-O;7!L97 N8PDR,# T+3$P+3 V(#$P.C(V.C0U
M+CDX-S$U-S0Q-B K,#(P, I 0" M,3,L-R K,3,L-R! 0 H ("  (&QO;F< 
M9&]U8FQE('([#0H ("  (&QO;F< 9&]U8FQE(&1E;CL-"B -"BT ("  :68 
M*&9A8G,H>2YR92D /"!F86)S*'DN:6TI*0T**R  ("!I9B H9F%B<VPH>2YR
M92D /"!F86)S;"AY+FEM*2D-"B  ("  >PT*( ER(#T >2YR92 O('DN:6T[
M#0H "61E;B ]('DN:6T *R!R("H >2YR93L-"D! ("TT,RPX("LT,RPX($! 
M"B![#0H ("  (&QO;F< 9&]U8FQE(' L>2QA;G,L=&5M<#L-"B -"BT ("  
M>" ](&9A8G,H>BYR92D[#0HM("  ('D /2!F86)S*'HN:6TI.PT**R  ("!X
M(#T 9F%B<VPH>BYR92D[#0HK("  ('D /2!F86)S;"AZ+FEM*3L-"B  ("  
M:68 *'  /3T ,"D-"B )86YS(#T >3L-"B  ("  96QS92!I9B H>2 ]/2 P
M*0T*0$  +34R+#$R("LU,BPQ,B! 0 H ("  (&5L<V4 :68 *'  /B!Y*0T*
M("  ("![#0H "71E;7  /2!Y("\ >#L-"BT)86YS(#T >" J('-Q<G0H,2 K
M('1E;7  *B!T96UP*3L-"BL)86YS(#T >" J('-Q<G1L*#$ *R!T96UP("H 
M=&5M<"D[#0H ("  ('T-"B  ("  96QS90T*("  ("![#0H "71E;7  /2!X
M("\ >3L-"BT)86YS(#T >2 J('-Q<G0H,2 K('1E;7  *B!T96UP*3L-"BL)
M86YS(#T >2 J('-Q<G1L*#$ *R!T96UP("H =&5M<"D[#0H ("  ('T-"B  
M("  <F5T=7)N(&%N<SL-"B!]#0I 0" M-S0L,3< *S<T+#$W($! "B  ("  
M?0T*("  ("!E;'-E#0H ("  ('L-"BT)>" ](&9A8G,H>BYR92D[#0HM"7D 
M/2!F86)S*'HN:6TI.PT**PEX(#T 9F%B<VPH>BYR92D[#0HK"7D /2!F86)S
M;"AZ+FEM*3L-"B ):68 *'  /CT >2D-"B )>PT*( D ("  <B ]('D +R!X
M.PT*+0D ("  =R ]('-Q<G0H>"D *B!S<7)T*# N-2 J(" Q("L <W%R=" Q
M("L <B J('(I*2D[#0HK"2  ("!W(#T <W%R=&PH>"D *B!S<7)T;" P+C4 
M*B H,2 K('-Q<G1L*#$ *R!R("H <BDI*3L-"B )?0T*( EE;'-E#0H "7L-
M"B )("  ('( /2!X("\ >3L-"BT)("  ('< /2!S<7)T*'DI("H <W%R=" P
M+C4 *B H<B K('-Q<G0H,2 K('( *B!R*2DI.PT**PD ("  =R ]('-Q<G1L
M*'DI("H <W%R=&PH,"XU("H *'( *R!S<7)T;" Q("L <B J('(I*2D[#0H 
;"7T-"B ):68 *'HN<F4 /CT ,"D-"B )>PT*
`
end
Oct 06 2004