Ask Your Question
0

Elliptic Curve Rational Field Height CODE

asked 12 years ago

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!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 12 years ago

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
Preview: (hide)
link

Comments

I see. Thank you very much for the help!

Blackadder gravatar imageBlackadder ( 12 years ago )

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: 12 years ago

Seen: 385 times

Last updated: Mar 17 '13