I'm playing with manim and I'd like to create an animation with an elliptic curve. This is my code, in the file functions.py:
from manim import *
class EllipticCurve(Scene):
def construct(self):
basic_ec = FunctionGraph(
lambda x: x**1.5 - x**0.5 + 19**0.5
)
self.play(Create(basic_ec))
When I execute this command manim -pql functions.py EllipticCurve
, I get the following error:
ValueError: array must not contain infs or NaNs
I believe the the method FunctionGraph
expects a function, instead of a curve, but how can I animate and plot an elliptic curve? Is there any other method? Am I missing something?