Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
metaknowledge = .1
cognition = .2
time = 100
steps_per_unit_time = 4
for i in range(time * steps_per_unit_time):
if i % steps_per_unit_time == 0:
print("At t = %d, cognition is %.2f and metaknowledge is %.2f." % (i / steps_per_unit_time, cognition, metaknowledge))
d_metaknowledge = .2 * metaknowledge * cognition
d_cognition = .2 * metaknowledge * cognition
metaknowledge += d_metaknowledge * 1.0 / steps_per_unit_time
cognition += d_cognition * 1.0 / steps_per_unit_time
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment