Coverage for docs/source/examples/external_function.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

3 statements  

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)