RosettaCodeData/Task/Euler-method/Tcl/euler-method-2.tcl
2023-07-01 13:44:08 -04:00

7 lines
177 B
Tcl

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