Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question
1

what does '3*sqrt(3)' means?

asked 8 years ago

anonymous user

Anonymous

I am confused in reading some results of software. Please explain me what the statement means. In the screen shot what is '3*sqrt(3)' means? and why it doesn't appears with decimal values integers?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 8 years ago

tmonteil gravatar image

updated 8 years ago

sqrt stands for "square root", so 3*sqrt(3) means 33.

Now, if you want a numerical representation of your number, you can use the .n() method:

sage: a = 3*sqrt(3)
sage: a.n()
5.19615242270663
Preview: (hide)
link

Comments

I want to know that how can sqrt(27) can be 3*sqrt(3). I know that I can get the decimal value by using .n() or .numerical_approx() but I want to know that what does that statement really mean? and how it is useful for a user?, I mean it should directly shown the value given by .numerical_approx() function.

I am very thankful that you replied to my question. Actually I am starting contributing to sage so it is necessary to understand each and every output.

It would be great if you help me a bit more.

zombie gravatar imagezombie ( 8 years ago )

27 is equal to 3^2*3, so sqrt(27) is simplified to 3*sqrt(3) (here, simplifying means having as less as possible under the sqrt symbol).

tmonteil gravatar imagetmonteil ( 8 years ago )

Thank you so much. Now I got know that what I was missing. I appreciate your concern.

zombie gravatar imagezombie ( 8 years ago )

^_^ .

tmonteil gravatar imagetmonteil ( 8 years ago )

@tmonteil, this seems weird. Why should Meth:sqrt return a simplified expression instead of the direct numerical value in some cases and not others? For instance, sqrt(6.1) gives 2. something directly, while I have to do n(sqrt(27)) to get 5. I get that this can be simplified and so it is, but why should that be its native behaviour instead of the decimal value? Also, is this a native Sage method or does it belong to some other package?

arpitdm gravatar imagearpitdm ( 8 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: 8 years ago

Seen: 3,626 times

Last updated: Oct 03 '16