Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1"""External function for GPkit to call. Can be found
2in gpkit/docs/source/examples/external_function.py"""
3import numpy as np
4
5def external_code(x):
6 "Returns sin(x)"
7 return np.sin(x)