Definitions of 1//2, was Re: CVS: maxima/src gamma.lisp, 1.44, 1.45
Subject: Definitions of 1//2, was Re: CVS: maxima/src gamma.lisp, 1.44, 1.45
From: David Billinghurst
Date: Thu, 19 Nov 2009 07:54:26 +1100
Dieter Kaiser wrote:
> We have some more ways in Maxima to get the rational constant ((rat
> simp) 1 2). These macros and variables are defined in Maxima core:
>
> (defvar 1//2 '((rat simp) 1 2))
> (defmacro 1//2 () ''((rat simp) 1 2)) ;1/2
> (defmacro half () ''((rat simp) 1 2)) ;1/2
> (defmvar 1//2 '((rat simp) 1 2))
>
Yes. Which form is best - one of the above or something else? Where
should we put a single definition?