incr n set p 0 while \$n<100 {puts [format "n=[incr n], p=%.8f" [set p [expr $p+(1-$p)*~-$n/365.]]]}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page