From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan =?iso-8859-1?q?Reich=F6r?= Newsgroups: gmane.emacs.help Subject: Re: calc: Converting HMS to decimal Date: Mon, 17 Mar 2003 08:02:11 +0100 Organization: Johannes Kepler Universitaet Linz Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047884425 27988 80.91.224.249 (17 Mar 2003 07:00:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2003 07:00:25 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 17 08:00:24 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18uobf-0007H7-00 for ; Mon, 17 Mar 2003 08:00:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18uobc-0001hE-01 for gnu-help-gnu-emacs@m.gmane.org; Mon, 17 Mar 2003 02:00:20 -0500 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (windows-nt) Original-NNTP-Posting-Host: heidi.riic.uni-linz.ac.at Original-X-Trace: news.uni-linz.ac.at 1047884336 heidi.riic.uni-linz.ac.at (17 Mar 2003 07:58:56 +0100) Original-Lines: 31 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!news.f.de.plusline.net!news-fra1.dfn.de!newsfeed01.univie.ac.at!aconews-feed.univie.ac.at!news.uni-linz.ac.at!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:111151 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7651 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7651 On Sun, 16 Mar 2003, Torsten Bronger stated: > Halloechen! > > I try to use calc 2.02f for HMS (hour--minute--second) values. I > want to to convert them to decimal format. So far, I've typed S-I-S > (sine--inverse sine) which works, but isn't there a more > straightforward solution? > > In particular, is there a possibility for this conversion in quick > calc mode (M-# q)? > > Tschoe, > Torsten. Hi Torsten, I some time ago I played a bit with calc - and found out, how I can call the calc functions from elisp: (progn (calc-eval "3x=9y" 'push) (calc-solve-for "x") (calc-eval 1 'top)) ; => x = 3 y (progn (calc-eval "3x^2+x+1=9" 'push) (calc-poly-roots "x") (calc-eval 1 'top)) ; => [1.47480963363, -1.80814296697] Perhaps you can do something similar for your HMS problem Stefan.