Ask Your Question

"Curve" function error: 'list' object is not callable

asked 2021-05-25 20:50:23 +0200

b17 gravatar image

updated 2021-05-25 20:51:26 +0200


I am trying to work with the curve constructor (particularly affine curves) in sage using their built in functions. I am using this page as reference:

But when I try to define curves like below I get the 'list' object not callable error message every time, even when I copy and paste code from the sage reference manual.

A.<x,y> = AffineSpace(QQ, 2)

C = Curve(x^2 + y^2 -1)

I understand that it probably thinks Curve is a list or something, but I'm not sure how to fix it?

Any help would be greatly appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-05-26 01:20:42 +0200

slelievre gravatar image

Works for me in Sage 9.3.


sage: A.<x, y> = AffineSpace(QQ, 2)
sage: A
Affine Space of dimension 2 over Rational Field
sage: C = Curve(x^2 + y^2 -1)
sage: C
Affine Plane Curve over Rational Field defined by x^2 + y^2 - 1

Did you happen to redefine Curve earlier in your code?

Can you observe the problem in a fresh Sage session?

Do you have things in your init.sage file?

Does the problem persist after

sage: reset('Curve')

Same questions with AffineSpace.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2021-05-25 20:50:23 +0200

Seen: 35 times

Last updated: May 26