Ask Your Question
1

How to change sqrt(5) to decimal?

asked 2019-03-07 17:16:54 +0100

john gravatar image

How can i typing to change root5 to decimal?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
2

answered 2019-03-07 19:30:13 +0100

BrentBaccala gravatar image

Try RR(sqrt(5)). The default precision is 53 bits, but that can be changed. For 100 bits of precision, use RealField(100)(sqrt(5))

edit flag offensive delete link more

Comments

1

or

a=sqrt(5)
a.n(400)
FrédéricC gravatar imageFrédéricC ( 2019-03-07 20:14:05 +0100 )edit
1

More detail, such as controlling the number of digits or precision, can be found in the documentation here. On this site, here gives some options.

dazedANDconfused gravatar imagedazedANDconfused ( 2019-03-08 14:58:14 +0100 )edit
1

answered 2019-03-11 06:12:45 +0100

nur_hamid gravatar image

simply by

float(sqrt(5))

or

RR(sqrt(5))
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

Stats

Asked: 2019-03-07 17:16:54 +0100

Seen: 1,547 times

Last updated: Mar 11 '19