Ask Your Question

How do I nest functions?

asked 2011-01-25 16:05:37 -0500

Mike gravatar image

updated 2011-01-25 16:09:05 -0500

The following code


returns an error, while the code

e = EllipticCurve([0,1]).reduction(5)

works fine. Is there a way to do this on one line? (Note: I don't particularly care about this with elliptic curves, I'd just like to be able to do things like this in one line. In other words, I'm not looking for a mathematical answer. Also, I'm asking for something different than, say, this

e = EllipticCurve([0,1]).reduction(5); e.cardinality()


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2011-01-25 16:15:44 -0500

Shashank gravatar image

Actually it works. Can you post the error?

sage: EllipticCurve([0,1]).reduction(5).cardinality()
edit flag offensive delete link more


I was spelling cardinality wrong in sage...

Mike gravatar imageMike ( 2011-01-26 04:25:56 -0500 )edit

Your Answer

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

Add Answer

Question Tools


Asked: 2011-01-25 16:05:37 -0500

Seen: 155 times

Last updated: Jan 25 '11