Skip to main content
added 36 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Haskell, 3333 32 bytes

-1 byte thanks to @xnor!

(!)=(sum.)b=sum.zipWith(*)b
a#b=a!b/b!b

Try it online!Try it online!


Coconut, 35 bytes

(a,b)->p(a,b)/p(b,b)
p=sum..map$(*)

Try it online!

Haskell, 33 bytes

(!)=(sum.).zipWith(*)
a#b=a!b/b!b

Try it online!


Coconut, 35 bytes

(a,b)->p(a,b)/p(b,b)
p=sum..map$(*)

Try it online!

Haskell, 33 32 bytes

-1 byte thanks to @xnor!

(!)b=sum.zipWith(*)b
a#b=a!b/b!b

Try it online!


Coconut, 35 bytes

(a,b)->p(a,b)/p(b,b)
p=sum..map$(*)

Try it online!

added 462 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Haskell, 33 bytes

(!)=(sum.).zipWith(*)
a#b=a!b/b!b

Try it online!


Coconut, 35 bytes

(a,b)->p(a,b)/p(b,b)
p=sum..map$(*)

Try it online!

Haskell, 33 bytes

(!)=(sum.).zipWith(*)
a#b=a!b/b!b

Try it online!

Haskell, 33 bytes

(!)=(sum.).zipWith(*)
a#b=a!b/b!b

Try it online!


Coconut, 35 bytes

(a,b)->p(a,b)/p(b,b)
p=sum..map$(*)

Try it online!

Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161

Haskell, 33 bytes

(!)=(sum.).zipWith(*)
a#b=a!b/b!b

Try it online!