ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 26 May 2021 01:20:42 +0200"Curve" function error: 'list' object is not callablehttps://ask.sagemath.org/question/57273/curve-function-error-list-object-is-not-callable/Hello!
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: https://doc.sagemath.org/html/en/reference/curves/sage/schemes/curves/affine_curve.html
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!Tue, 25 May 2021 20:50:23 +0200https://ask.sagemath.org/question/57273/curve-function-error-list-object-is-not-callable/Answer by slelievre for <p>Hello!</p>
<p>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: <a href="https://doc.sagemath.org/html/en/reference/curves/sage/schemes/curves/affine_curve.html">https://doc.sagemath.org/html/en/refe...</a></p>
<p>But when I try to define curves like below I get the <code>'list' object not callable</code> error message every time, even when I copy and paste code from the sage reference manual. </p>
<p><code>A.<x,y> = AffineSpace(QQ, 2)</code></p>
<p><code>C = Curve(x^2 + y^2 -1)</code></p>
<p>I understand that it probably thinks <code>Curve</code> is a list or something, but I'm not sure how to fix it?</p>
<p>Any help would be greatly appreciated!</p>
https://ask.sagemath.org/question/57273/curve-function-error-list-object-is-not-callable/?answer=57277#post-id-57277Works for me in Sage 9.3.
Example:
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`.Wed, 26 May 2021 01:20:42 +0200https://ask.sagemath.org/question/57273/curve-function-error-list-object-is-not-callable/?answer=57277#post-id-57277