24 lines
516 B
Python
24 lines
516 B
Python
|
import numpy as np
|
||
|
c = np.array(
|
||
|
[ 15 # (x**0
|
||
|
, 1 # x**1
|
||
|
, -6 # x**2
|
||
|
, 0 # x**3
|
||
|
, 0 # x**4
|
||
|
, 0 # x**5
|
||
|
, 0 # x**6)
|
||
|
, 1 # *c*exp(
|
||
|
, -1 # c
|
||
|
, 0 # (r - c))
|
||
|
, -1 # + c*exp(
|
||
|
, -.1 # c
|
||
|
, 2 # (r - c))
|
||
|
, -4 # + c*exp(
|
||
|
, -0.05 # c
|
||
|
, 40 # (r - c)**2)
|
||
|
, 10 # + c*exp(
|
||
|
, -0.05 # c
|
||
|
, 20] # (r - c)**2)
|
||
|
, dtype=np.float16)
|
||
|
|