RosettaCodeData/Task/Elliptic-curve-arithmetic/Haskell/elliptic-curve-arithmetic-4.hs
2023-07-01 13:44:08 -04:00

2 lines
89 B
Haskell

ellipticX b y = Elliptic (qroot (y^2 - b)) y
where qroot x = signum x * abs x ** (1/3)