Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d461568450582366c96c5fda2721cd71436ae135
Ticket: 1273713fffffffffffffffffffffffffffffffff
Expr with acos
User & Date: msofer on 2005-08-26 08:13:32
Changes

  1. icomment:
    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
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"