> a = 9, b = 14.286,
>
> q=2 # 3-scroll
> m = [0.9/7, -3/7, 3.5/7, -2.4/7]
> c = [0, 1, 2.15, 4]
>
> q=4 # 7-scroll
> m = [0.9/7, -3/7, 3.5/7, -2.4/7, 2.52/7, -1.68/7, 2.52/7, -1.68/7]
> c = [0, 1, 2.15, 3.6, 6.2, 9, 14, 25],
>
> x0 = 0.1, y0 = -0.2, z0 = 0.3,
```
def multi_chua(a, b, q, m, c):
n = 2*q-1
formula = lambda x, i: (m[i-1] - m[i])*(abs(x + c[i]) - abs(x - c[i]))
h = lambda x: m[n]*x + 1/2*sum([formula(x, index) for index in range(1,n+1)])
return lambda x, y, z:(
a*(y - h(x)),
x - y + z,
-b*y
)
```
## References
> J.A.K. Suykens, A. Huang, & L.O. Chua, "A Family of n-Scroll Attractors from a Generalized Chua’s Circuit," AEU, Vol.51, (1997) 131-138.