From: SourceForge.net <no...@so...> - 2005-08-26 01:13:33
|
Bugs item #1273713, was opened at 2005-08-25 21:38 Message generated for change (Comment added) made by msofer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1273713&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 16. Commands A-H Group: None Status: Open Resolution: None Priority: 5 Submitted By: Alvin Leung (alvinpleung) Assigned to: Donal K. Fellows (dkf) Summary: Expr with acos Initial Comment: set factor2 [expr ($x0x1 - $y1_sqrt_factor1) * $denominator] [expr acos($factor2)] works set factor2 [expr acos(($x0x1 - $y1_sqrt_factor1) * $denominator)] failed with error message domain error: argument not in valid range ---------------------------------------------------------------------- >Comment By: miguel sofer (msofer) Date: 2005-08-25 22:13 Message: Logged In: YES user_id=148712 Can you provide a complete session log, including the values of your variables? Are you sure that they have the same values in both cases? The error message indicates that (Tcl thinks that) the argument to 'acos' is not between -1 and 1 % set a 2 2 % set b 1 1 % set c 0.5 0.5 % set f [expr acos(($a-$b)*$c)] 1.0471975512 % set c 2 2 % set f [expr acos(($a-$b)*$c)] domain error: argument not in valid range ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1273713&group_id=10894 |