User Tools

Site Tools


cs401r_w2016:lab10

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
cs401r_w2016:lab10 [2018/03/30 17:06]
sadler [Description:]
cs401r_w2016:lab10 [2018/03/30 17:50]
sadler [Description:]
Line 46: Line 46:
 <code python> <code python>
 import numpy as np import numpy as np
-def p( x, t=1.0 ): +def p( x, temperature=1.0 ): 
-    return np.exp( -10*t*((x-2)**2) ) + 0.3*np.exp( -0.5*10*t*((x+1)**2) )+    return np.exp( -10*t*((x-2)**2) ) + 0.3*np.exp( -0.5*10*temperature*((x+1)**2) )
 </​code>​ </​code>​
  
cs401r_w2016/lab10.txt · Last modified: 2021/06/30 23:42 (external edit)