I want to generalise this function

```
def selfSufficiency(a: Seq[Double], b: Seq[Double]): Double =
a.sum/b.sum
```

I tried using the ideas provided here to implement a more general function that work with Doubles, Floats, Ints, etc.:

```
def selfSufficiency[A](a: Seq[A], b: Seq[A])
(implicit n: Numeric[A]):A = {
import n._
a.sum/b.sum
}
```

I however get a remark from eclipse saying that

value / is not a member of type parameter A.

1- How can I implement this in functional/generalisable way?

2- Does my implementation limits the user to have the same type "A" for both inputs? In other words, can I do this with my code?

```
selfSufficiency(Seq(1,2,3), Seq(2.0,1.3))
```

if I cannot, please explain how to implement this?

Please note that the code here provide a toy example. In my production function, I add, subtract, find the larger number, etc.