Hi
i use this code :
for {set j 1} { $j <=$NTHA_Step } {incr j 1} {
set teta($j) [lindex $file_read $j]
set abs_teta($j) [expr abs ( $teta($j) ) ]
}
but i get this error : too few arguments for math function "abs"
i ckecked , the teta($j) s are calculated.
could you please tell me what i do wrong
thanks
about abs() function in TCL
Moderators: silvia, selimgunay, Moderators
-
- Posts: 82
- Joined: Fri Aug 14, 2009 12:11 am
- Location: iiees
Re: about abs() function in TCL
it could be he end of file is causing you problems, put a puts right before the abs to see.
Re: about abs() function in TCL
it may be the space between abs and the parenthesis
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104