RosettaCodeData/Task/Euler-method/Tcl/euler-method-2.tcl

8 lines
177 B
Tcl
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
proc newtonCoolingLaw {time temp} {
expr {-0.07 * ($temp - 20)}
}
euler newtonCoolingLaw 100 0 100 2
euler newtonCoolingLaw 100 0 100 5
euler newtonCoolingLaw 100 0 100 10