From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Ypo <ypuntot@gmail.com>
Newsgroups: gmane.emacs.help
Subject: Re: Is there a list with calc modes for calc embedded?
Date: Tue, 16 Jan 2024 23:05:21 +0100
Message-ID: <fa03e417-59b2-6d10-a7ec-dc8e02263348@gmail.com>
References: <5e8605a6-fc3e-ad4f-e2a3-8eedc84f7d66@gmail.com>
 <87r0ijmp1t.fsf@web.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="15046"; mail-complaints-to="usenet@ciao.gmane.io"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101
 Thunderbird/102.15.1
Cc: help-gnu-emacs@gnu.org
To: Michael Heerdegen <michael_heerdegen@web.de>,
 Eric S Fraga <e.fraga@ucl.ac.uk>
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jan 16 23:06:09 2024
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1rPrZQ-0003kq-W7
	for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 16 Jan 2024 23:06:08 +0100
Original-Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <help-gnu-emacs-bounces@gnu.org>)
	id 1rPrYo-0004tV-FJ; Tue, 16 Jan 2024 17:05:30 -0500
Original-Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ypuntot@gmail.com>) id 1rPrYm-0004t7-Vw
 for help-gnu-emacs@gnu.org; Tue, 16 Jan 2024 17:05:29 -0500
Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ypuntot@gmail.com>) id 1rPrYl-0002ao-Dj
 for help-gnu-emacs@gnu.org; Tue, 16 Jan 2024 17:05:28 -0500
Original-Received: by mail-wr1-x42d.google.com with SMTP id
 ffacd0b85a97d-337b583453bso934001f8f.2
 for <help-gnu-emacs@gnu.org>; Tue, 16 Jan 2024 14:05:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1705442725; x=1706047525; darn=gnu.org;
 h=in-reply-to:from:references:cc:to:content-language:subject
 :user-agent:mime-version:date:message-id:from:to:cc:subject:date
 :message-id:reply-to;
 bh=KdvF6SAusXy04LXWB0ZHVtTDVm8zGFf1XMhAdTWhfXI=;
 b=J433HTFOzrwU7eu5POpHoVIyKsPm37s+cNIdNMihFJtNd+KLuud86aniTHqvQcSl84
 XHkuokvko2y2OzMcarSQ3pNF05908oLMkAWSntpRCd9BkPpU2PFjYJqGqwNLSWqBUWxD
 i3N3yowQ3tRGNogn45+7PBXUYD8WAEKfTHfLFvQkithwD2PYWOLwaZQ8kJLm8bgAtTLM
 tR7CpAaL5HpWgiFOm5q4lbCOINL/5aJbgIlGgV3OKoMr9lm/29DIo3mZ3XDTlWK+UOn+
 nMV0BLVjpWRoBmt7eXRG/0Cla/LtxdH9pr+zhUob9nNz3czpsAkQCi/xasTzjxBYDhue
 w1GA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1705442725; x=1706047525;
 h=in-reply-to:from:references:cc:to:content-language:subject
 :user-agent:mime-version:date:message-id:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=KdvF6SAusXy04LXWB0ZHVtTDVm8zGFf1XMhAdTWhfXI=;
 b=hwo0uLDl94gRzITo4TTo9CcKxwE1172r0poz07+AgHVuN+BuMlsQFEyr5Cfey1LX56
 w53jT8H+OBvG6XlJ0K9JV5J7eOM5CLLUx1iUtSeR17AM7NX2PswyeIDks2zR7A26FuJy
 7q0NEDr5DxmLC++7bMwE7AnfXyTUSpg1oy3cXDMJNx8aSTAABBHXio7MgWZsLqY63GGC
 UEW+kgv3WfKwHOb3oX465nNlUwmcoGtGSqB51D2nhuhE7l1qY3LMwZp1uGfr3+XAh3Ww
 /qP40FbKq6vWtXRIhmsD+yBCmzKklQIfvklvmGa7NcCzSAFkybpLrgjdx05+OpZvm4ny
 alkA==
X-Gm-Message-State: AOJu0YzJe5e52/seefxkbGE5oo2mSk/TEd1bz5ZFPcW87IFaAA8Zu7Gm
 bCXqVQKlmnlOS+Z8BpfJsGTOBzHycOtaSA==
X-Google-Smtp-Source: AGHT+IHC1+aPFqncb1XI6jIazLseaywfG3dV3Xkv1dvJQ/Non9ItwHSLMDtGHugfkkLw5sbEkZZ95A==
X-Received: by 2002:a05:600c:2949:b0:40e:6909:ff75 with SMTP id
 n9-20020a05600c294900b0040e6909ff75mr2629054wmd.20.1705442724729; 
 Tue, 16 Jan 2024 14:05:24 -0800 (PST)
Original-Received: from [192.168.0.97] (static-87-230-7-89.ipcom.comunitel.net.
 [89.7.230.87]) by smtp.gmail.com with ESMTPSA id
 v21-20020a05600c445500b0040e3bdff98asm24149967wmn.23.2024.01.16.14.05.23
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Tue, 16 Jan 2024 14:05:24 -0800 (PST)
Content-Language: en-GB
In-Reply-To: <87r0ijmp1t.fsf@web.de>
Received-SPF: pass client-ip=2a00:1450:4864:20::42d;
 envelope-from=ypuntot@gmail.com; helo=mail-wr1-x42d.google.com
X-Spam_score_int: -38
X-Spam_score: -3.9
X-Spam_bar: ---
X-Spam_report: (-3.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, NICE_REPLY_A=-1.748, RCVD_IN_DNSWL_NONE=-0.0001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
 <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org
Xref: news.gmane.io gmane.emacs.help:145743
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/145743>

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
>