# Links for the 2017 Summer Institute

## Miscellaneous

Undocumented action: truncate -- converts floating point (decimal) to integer (floor or least integer function)

## Scripting and Perceive-Act Computational Thinking Patterns

Why we use these CTPs

```  * Precise control of a model
* Synchronization of two-step processes

```

## Hill-Climbing Modes and Diffusion

### Diffusion formulas

t + @D*((t[up]-t) + (t[down]-t) + (t[left]-t) + (t[right]-t))

t+@D*((t[up]-t)+(t[down]-t)+(t[left]-t)+(t[right]-t))

t + @D*(t[up] + t[down] + t[left] + t[right]- 4*t)

s + @D*(s[up] + s[down] + s[left] + s[right]- 4*s)

p + @D*(p[up] + p[down] + p[left] + p[right]- 4*p)

r + @D*(r[up] + r[down] + r[left] + r[right]- 4*r)

h + @D*(h[up] + h[down] + h[left] + h[right]- 4*h)

### Simplified formulas

.25*(s[up]+s[down]+s[left]+s[right])

.25*(h[up]+h[down]+h[left]+h[right])

.25*(r[up]+r[down]+r[left]+r[right])

.25*(p[up]+p[down]+p[left]+p[right])

.25*(disease[up]+disease[down]+disease[left]+disease[right])