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

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

defining "constants" in calc


From: Benjamin Slade
Subject: defining "constants" in calc
Date: Sat, 25 Jun 2011 16:39:34 -0500

I'm trying to get my head round using calc-based functions. If I want to define a constant, using higher precision than what normal Emacs Lisp allows, how can I do this using calc?

I was trying to use this:

(defmath my-calc-func
  (exp "365 + 279457:1080000"))

[Intended to mean: define a constant whose value is: (365 + (279457/1080000)).]

--
-----------------------------------------------------------------------------------------------------
Benjamin Slade
Dept. of Linguistics
University of Illinois at Urbana-Champaign                 
[ http://www.jnanam.net/slade/ ]                        
  
Stæfcræft & Vyākaraṇa (lingblog) - http://staefcraeft.blogspot.com
The Babbage Files (techblog) - http://babbagefiles.blogspot.com

-----------------------------------------------------------------------------------------------------
  रो ऽक्ष॑कामा हि देवाः
    'The gods love the obscure.' (Śatapathabrāmaṇa 6.1.1.2)

reply via email to

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