U
U
up72020-11-10 12:50:19
Mathematics
up7, 2020-11-10 12:50:19

How to visualize an elliptic curve?

An elliptic curve is given by the formula, for example

y2 = x3 - x + 1

Run poix by the formula

y = Convert::ToInt32(sqrt((double)(x*x*x + a*x + b)));

And we get something similar to a parabola

5faa622898a23156880886.png

. How to achieve such a graph? As in Wikipedia

1024px-ECClines-3.svg.png

I can not understand Something.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wataru, 2020-11-10
@wataru

Have you tried substituting a=-1, b=1 into your formula?
For x=-1, your formula will return y= 1.
Why it doesn't draw anything, I can't tell without seeing all of your code. Perhaps something breaks there because of the roots of negative numbers. Need to check first. that x^3+ax+b >= 0, and only in this case calculate y and draw points. And, yes, you need to loop through x from negative numbers too.
You can first solve the equation x^3+ax+b = 0 to understand the domain of the function.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question