Anonymous user
Real constants and functions: Difference between revisions
→{{header|Tcl}}: + pi = acos(-1)
m (→{{header|JavaScript}}: formatting) |
(→{{header|Tcl}}: + pi = acos(-1)) |
||
Line 439:
=={{header|Tcl}}==
<lang tcl>expr {exp(1)} ;# e
expr {4 * atan(1)} ;# pi -- also, simpler: expr acos(-1)
expr {sqrt($x)} ;# square root
expr {log($x)} ;# natural logarithm, also log10
|