-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunc.py
19 lines (19 loc) · 1010 Bytes
/
func.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import numpy as np
def sq(x, a, b, c, d, e, f, g, h, i, j, k):
return a * x + b*x**2 + c
def tr(x, a, b, c, d, e, f, g, h, i, j, k):
return a * x + b*x**2 + c*x**3 + d
def fo(x, a, b, c, d, e, f, g, h, i, j, k):
return a * x + b*x**2 + c*x**3 + d*x**4 + e
def fi(x, a, b, c, d, e, f, g, h, i, j, k):
return a * x + b*x**2 + c*x**3 + d*x**4 + e*x**5 + f
def si(x, a, b, c, d, e, f, g, h, i, j, k):
return a * x + b*x**2 + c*x**3 + d*x**4 + e*x**5 + f*x**6 + g
def se(x, a, b, c, d, e, f, g, h, i, j, k):
return a * x + b*x**2 + c*x**3 + d*x**4 + e*x**5 + f*x**6 + g*x**7 + h
def ei(x, a, b, c, d, e, f, g, h, i, j, k):
return a * x + b*x**2 + c*x**3 + d*x**4 + e*x**5 + f*x**6 + g*x**7 + h*x**8 + i
def ni(x, a, b, c, d, e, f, g, h, i, j, k):
return a * x + b*x**2 + c*x**3 + d*x**4 + e*x**5 + f*x**6 + g*x**7 + h*x**8 + i*x**9 + j
def te(x, a, b, c, d, e, f, g, h, i, j, k):
return a * x + b*x**2 + c*x**3 + d*x**4 + e*x**5 + f*x**6 + g*x**7 + h*x**8 + i*x**9 + j*x**10 + k