all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Roots other than square roots in Emacs calc
@ 2009-08-25 13:15 Teemu Likonen
  2009-08-25 13:40 ` Xah Lee
  0 siblings, 1 reply; 7+ messages in thread
From: Teemu Likonen @ 2009-08-25 13:15 UTC (permalink / raw)
  To: help-gnu-emacs

Emacs calc can calculate square roots with "Q" command or with sqrt(x).
How about other roots? How to get cube root, for example?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Roots other than square roots in Emacs calc
  2009-08-25 13:15 Roots other than square roots in Emacs calc Teemu Likonen
@ 2009-08-25 13:40 ` Xah Lee
  2009-08-25 13:45   ` Teemu Likonen
  0 siblings, 1 reply; 7+ messages in thread
From: Xah Lee @ 2009-08-25 13:40 UTC (permalink / raw)
  To: help-gnu-emacs

On Aug 25, 6:15 am, Teemu Likonen <tliko...@iki.fi> wrote:
> Emacs calc can calculate square roots with "Q" command or with sqrt(x).
> How about other roots? How to get cube root, for example?

raise it to 1/3 for cube root.

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Roots other than square roots in Emacs calc
  2009-08-25 13:40 ` Xah Lee
@ 2009-08-25 13:45   ` Teemu Likonen
  2009-08-25 13:54     ` Xah Lee
  0 siblings, 1 reply; 7+ messages in thread
From: Teemu Likonen @ 2009-08-25 13:45 UTC (permalink / raw)
  To: help-gnu-emacs

On 2009-08-25 06:40 (-0700), Xah Lee wrote:

> On Aug 25, 6:15 am, Teemu Likonen <tliko...@iki.fi> wrote:
>> Emacs calc can calculate square roots with "Q" command or with
>> sqrt(x). How about other roots? How to get cube root, for example?
>
> raise it to 1/3 for cube root.

Ah, of course, stupid me.

But hey, I teach Finnish, not math. :-)


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Roots other than square roots in Emacs calc
  2009-08-25 13:45   ` Teemu Likonen
@ 2009-08-25 13:54     ` Xah Lee
  2009-08-25 14:16       ` Jay Belanger
  0 siblings, 1 reply; 7+ messages in thread
From: Xah Lee @ 2009-08-25 13:54 UTC (permalink / raw)
  To: help-gnu-emacs

On Aug 25, 6:45 am, Teemu Likonen <tliko...@iki.fi> wrote:
> On 2009-08-25 06:40 (-0700), Xah Lee wrote:
>
> > On Aug 25, 6:15 am, Teemu Likonen <tliko...@iki.fi> wrote:
> >> Emacs calc can calculate square roots with "Q" command or with
> >> sqrt(x). How about other roots? How to get cube root, for example?
>
> > raise it to 1/3 for cube root.
>
> Ah, of course, stupid me.
>
> But hey, I teach Finnish, not math. :-)

few years ago i asked for how to do square root in comp.emacs and was
having a fit to boot, and they told me raise it to 1/2.

:D

 Xah


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Roots other than square roots in Emacs calc
  2009-08-25 13:54     ` Xah Lee
@ 2009-08-25 14:16       ` Jay Belanger
  2009-08-25 14:32         ` Teemu Likonen
  0 siblings, 1 reply; 7+ messages in thread
From: Jay Belanger @ 2009-08-25 14:16 UTC (permalink / raw)
  To: help-gnu-emacs



>> > On Aug 25, 6:15 am, Teemu Likonen <tliko...@iki.fi> wrote:
>> >> Emacs calc can calculate square roots with "Q" command or with
>> >> sqrt(x). How about other roots? How to get cube root, for example?

The ^ command gives powers; with the inverse flag, I ^, you will get the
roots.  So, for example, to find the cube root of 27, you can enter
27 RET 3 I ^

> few years ago i asked for how to do square root in comp.emacs and was
> having a fit to boot, and they told me raise it to 1/2.

Someone may well have said that, but it was also pointed out that the
manual (under "Basic Arithmetic") clearly states that "Q" gives the
square root.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Roots other than square roots in Emacs calc
  2009-08-25 14:16       ` Jay Belanger
@ 2009-08-25 14:32         ` Teemu Likonen
  2009-08-25 15:04           ` Jay Belanger
  0 siblings, 1 reply; 7+ messages in thread
From: Teemu Likonen @ 2009-08-25 14:32 UTC (permalink / raw)
  To: help-gnu-emacs

On 2009-08-25 09:16 (-0500), Jay Belanger wrote:

> The ^ command gives powers; with the inverse flag, I ^, you will get
> the roots. So, for example, to find the cube root of 27, you can enter
> 27 RET 3 I ^

Interesting. So, these are the basic options:

    27 RET 3 & ^
    27 RET 3 I ^


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Roots other than square roots in Emacs calc
  2009-08-25 14:32         ` Teemu Likonen
@ 2009-08-25 15:04           ` Jay Belanger
  0 siblings, 0 replies; 7+ messages in thread
From: Jay Belanger @ 2009-08-25 15:04 UTC (permalink / raw)
  To: help-gnu-emacs



Teemu Likonen <tlikonen@iki.fi> writes:
> On 2009-08-25 09:16 (-0500), Jay Belanger wrote:
>
>> The ^ command gives powers; with the inverse flag, I ^, you will get
>> the roots. So, for example, to find the cube root of 27, you can enter
>> 27 RET 3 I ^
>
> Interesting. So, these are the basic options:
>
>     27 RET 3 & ^
>     27 RET 3 I ^

Yes.  If you use the first option, you'd want to be in fraction mode so
you are taking 27 to the 1/3 power and not the 0.333333333333 power.
The second option doesn't depend on the mode.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-08-25 15:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-25 13:15 Roots other than square roots in Emacs calc Teemu Likonen
2009-08-25 13:40 ` Xah Lee
2009-08-25 13:45   ` Teemu Likonen
2009-08-25 13:54     ` Xah Lee
2009-08-25 14:16       ` Jay Belanger
2009-08-25 14:32         ` Teemu Likonen
2009-08-25 15:04           ` Jay Belanger

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.