MCPcopy Create free account
hub / github.com/Apress/python-for-matlab-development / f

Function f

code/griddata/spiral_interp.py:32–34  ·  view source on GitHub ↗
(x,y)

Source from the content-addressed store, hash-verified

30import numpy as np
31from scipy.interpolate import griddata
32def f(x,y):
33 return x + 2*(np.cos(7*x)+
34 np.sin(5*y)) + 3*y*np.sin(6*x)
35K = 0.005
36# subsample f(x,y) at 114 points
37t = np.linspace(0,800,num=1100)

Callers 1

spiral_interp.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected