How to use pi in tcl
Altair Forum User
Altair Employee
Hi,
I need to use value of pi number in the expression below
set y [expr $mag*sin($angle*2*pi/360)]
Is there any usage of pi number in TCL?
Thanks in advance.
0
Answers
-
hi,
i think just use it as ordinary varialbles similar to $mag, $angle
set pi=3.14
and get value by $pi
0 -
set pi [expr acos(-1.0)]
usage:
set y [expr $mag*sin($angle*2.0*$pi/360.0)]
0 -