<s> from __future__ import division <EOL> import numpy as np <EOL> from pysd import functions <EOL> def time ( ) : <EOL> return _t <EOL> def characteristic_time ( ) : <EOL> """<STR_LIT>""" <EOL> return <NUM_LIT:10> <EOL> def heat_loss_to_room ( ) : <EOL> """<STR_LIT>""" <EOL> return ( teacup_temperature ( ) - room_temperature ( ) ) / characteristic_time ( ) <EOL> def room_temperature ( ) : <EOL> """<STR_LIT>""" <EOL> return <NUM_LIT> <EOL> def teacup_temperature ( ) : <EOL> return _state [ '<STR_LIT>' ] <EOL> def _teacup_temperature_init ( ) : <EOL> return <NUM_LIT> <EOL> def _dteacup_temperature_dt ( ) : <EOL> return - heat_loss_to_room ( ) <EOL> def final_time ( ) : <EOL> """<STR_LIT>""" <EOL> return <NUM_LIT:30> <EOL> def initial_time ( ) : <EOL> """<STR_LIT>""" <EOL> return <NUM_LIT:0> <EOL> def saveper ( ) : <EOL> """<STR_LIT>""" <EOL> return time_step ( ) <EOL> def time_step ( ) : <EOL> """<STR_LIT>""" <EOL> return <NUM_LIT> </s>
