Ask Your Question
0

Elliptic Curve Rational Field Height CODE

asked 2013-03-17 08:14:07 -0500

anonymous user

Anonymous

Hi, I would like to know what does the function R() in lines 5060,5061 etc do. This is the code that I'm looking at:

http://hg.sagemath.org/sage-main/file...

Thank you!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-03-17 10:09:58 -0500

fidbc gravatar image

There R represents the field of real numbers with given precision. It is just used for conversion. You can try it with the following example

sage: R=RealField()
sage: 1
1
sage: type(1)
sage.rings.integer.Integer
sage: R(1)
1.00000000000000
sage: type(R(1))
sage.rings.real_mpfr.RealNumber
edit flag offensive delete link more

Comments

I see. Thank you very much for the help!

Blackadder gravatar imageBlackadder ( 2013-03-18 06:36:54 -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

1 follower

Stats

Asked: 2013-03-17 08:14:07 -0500

Seen: 102 times

Last updated: Mar 17 '13