Ask Your Question
1

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

asked 2016-10-02 08:53:35 -0600

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?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2016-10-02 13:10:53 -0600

tmonteil gravatar image

updated 2016-10-03 16:53:48 -0600

sqrt stands for "square root", so 3*sqrt(3) means $3\sqrt{3}$.

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
edit flag offensive delete link more

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 ( 2016-10-03 12:25:09 -0600 )edit

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 ( 2016-10-03 16:52:46 -0600 )edit

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

zombie gravatar imagezombie ( 2016-10-04 11:37:21 -0600 )edit

^_^ .

tmonteil gravatar imagetmonteil ( 2016-10-04 12:12:38 -0600 )edit

@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 ( 2016-10-04 12:21:12 -0600 )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: 2016-10-02 08:53:35 -0600

Seen: 79 times

Last updated: Oct 03 '16