unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Is there a list with calc modes for calc embedded?
@ 2024-01-13 13:57 Ypo
  2024-01-15  0:13 ` Michael Heerdegen
  2024-01-16 15:38 ` Eric S Fraga
  0 siblings, 2 replies; 4+ messages in thread
From: Ypo @ 2024-01-13 13:57 UTC (permalink / raw)
  To: help-gnu-emacs

I have tried:

% [calc-mode: calc-angle-mode : calc-radians-mode]
% [calc-mode: calc-angle-mode : radians-mode]
% [calc-mode: calc-radians-mode : t]

sin(90) => 1


But I never get the result in radians. Is there a list where I could see 
all the calc-modes we can use in embedded calc?


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

* Re: Is there a list with calc modes for calc embedded?
  2024-01-13 13:57 Is there a list with calc modes for calc embedded? Ypo
@ 2024-01-15  0:13 ` Michael Heerdegen
  2024-01-16 22:05   ` Ypo
  2024-01-16 15:38 ` Eric S Fraga
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Heerdegen @ 2024-01-15  0:13 UTC (permalink / raw)
  To: Ypo; +Cc: help-gnu-emacs

Ypo <ypuntot@gmail.com> writes:

> I have tried:
>
> % [calc-mode: calc-angle-mode : calc-radians-mode]
> % [calc-mode: calc-angle-mode : radians-mode]
> % [calc-mode: calc-radians-mode : t]
>
> sin(90) => 1

The Calc manual suggests to switch the according setting when embedded
mode is active to let Calc insert the spec itself.  Did you try that?

> But I never get the result in radians. Is there a list where I could
> see all the calc-modes we can use in embedded calc?

That should be `calc-embedded-mode-vars' AFAIU.

Michael.



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

* Re: Is there a list with calc modes for calc embedded?
  2024-01-13 13:57 Is there a list with calc modes for calc embedded? Ypo
  2024-01-15  0:13 ` Michael Heerdegen
@ 2024-01-16 15:38 ` Eric S Fraga
  1 sibling, 0 replies; 4+ messages in thread
From: Eric S Fraga @ 2024-01-16 15:38 UTC (permalink / raw)
  To: help-gnu-emacs

On Saturday, 13 Jan 2024 at 14:57, Ypo wrote:
> I have tried:
>
> % [calc-mode: calc-angle-mode : calc-radians-mode]
> % [calc-mode: calc-angle-mode : radians-mode]
> % [calc-mode: calc-radians-mode : t]

Try

% [calc-mode: angles: rad]

Easy way to generate this line: enter embedded edit mode (C-x *e) and
then ask for radians mode (m r).  Emacs Calc should add the line
automatically for you.

HTH,
eric

-- 
Eric S Fraga via gnus (Emacs 30.0.50 2023-06-19) on Debian 12.0




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

* Re: Is there a list with calc modes for calc embedded?
  2024-01-15  0:13 ` Michael Heerdegen
@ 2024-01-16 22:05   ` Ypo
  0 siblings, 0 replies; 4+ messages in thread
From: Ypo @ 2024-01-16 22:05 UTC (permalink / raw)
  To: Michael Heerdegen, Eric S Fraga; +Cc: help-gnu-emacs

Lovely!

# [calc-mode: angles: rad]

sin(pi) => 0.


Thanks!!!

On 15/01/2024 1:13, Michael Heerdegen wrote:
> Ypo<ypuntot@gmail.com>  writes:
>
>> I have tried:
>>
>> % [calc-mode: calc-angle-mode : calc-radians-mode]
>> % [calc-mode: calc-angle-mode : radians-mode]
>> % [calc-mode: calc-radians-mode : t]
>>
>> sin(90) => 1
> The Calc manual suggests to switch the according setting when embedded
> mode is active to let Calc insert the spec itself.  Did you try that?
>
>> But I never get the result in radians. Is there a list where I could
>> see all the calc-modes we can use in embedded calc?
> That should be `calc-embedded-mode-vars' AFAIU.
>
> Michael.


On 16/01/2024 16:38, Eric S Fraga wrote:
> On Saturday, 13 Jan 2024 at 14:57, Ypo wrote:
>> I have tried:
>>
>> % [calc-mode: calc-angle-mode : calc-radians-mode]
>> % [calc-mode: calc-angle-mode : radians-mode]
>> % [calc-mode: calc-radians-mode : t]
> Try
>
> % [calc-mode: angles: rad]
>
> Easy way to generate this line: enter embedded edit mode (C-x *e) and
> then ask for radians mode (m r).  Emacs Calc should add the line
> automatically for you.
>
> HTH,
> eric
>


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

end of thread, other threads:[~2024-01-16 22:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-13 13:57 Is there a list with calc modes for calc embedded? Ypo
2024-01-15  0:13 ` Michael Heerdegen
2024-01-16 22:05   ` Ypo
2024-01-16 15:38 ` Eric S Fraga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).