help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calc: Converting HMS to decimal


From: Stefan Reichör
Subject: Re: calc: Converting HMS to decimal
Date: Mon, 17 Mar 2003 08:02:11 +0100
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 (windows-nt)

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]