RosettaCodeData/Task/Nth-root/Tcl/nth-root-3.tcl
2023-07-01 13:44:08 -04:00

5 lines
141 B
Tcl

puts [nthroot 2 2]
puts [nthroot 5 34]
puts [nthroot 5 [expr {34**5}]]
puts [nthroot 10 [expr 7131.5**10]]
puts [nthroot 0.5 7]; # Squaring!