From: Justin Gullingsrud (jgulling_at_mccammon.ucsd.edu)
Date: Sun Mar 14 2004 - 11:02:12 CST

Another caveat: you should nearly always put the argument to expr
inside of curly braces, like so:

set a 10
puts [expr {atan($a)}]

This will make expr run several times faster, believe it or not, due to
differences in how variable substitutions are performed (don't worry,
you'll still get the same answer except in some very strange cases that
won't happen by accident).

Cheers,
Justin

On Mar 14, 2004, at 2:32 AM, Jérôme Hénin wrote:

> Hi Ahmet,
>
> Tcl has trigonometric functions built in the "expr" statement, which
> is to be
> used anyway for most arithmetic evaluations.
>
> For instance, in VMD console :
>
> vmd > puts [expr atan(1)*4]
> 3.14159265359
>
> Regards,
> Jerome
>
>
> Le dimanche 14 Mars 2004 01:06, vous avez écrit :
>> Hi All,
>>
>> Can we use sin cosine functions on Tcl console? If not is it possible
>> to
>> include a library for this kind of functions?
>>
>> Greetings,
>> Ahmet
>>
>> ==============ABC==============
>> Ahmet Bakan
>> Chemistry, Junior
>> Koc University
>> abakan_at_ku.edu.tr
>> MSN ahmetbakan_at_msn.com
>> ICQ #86167698
>> http://home.ku.edu.tr/~abakan
>>

--
The universe is transformation: life is opinion.  -- marcus aurelius