Next: , Up: iklib numerics   [Index]


6.32.1 Numeric constants

The following bindings are exported by the library (vicare numerics constants). Notice that under GNU Emacs it is easy to display the symbol greek-pi with the Unicode glyph for the greek letter adding the following to the Scheme hook:

(defun my-pretty-chars-scheme-pi ()
  (interactive)
  (font-lock-add-keywords
   nil '(("\\(\\<[-+]?\\(greek-pi\\)\\)"
          (0 (progn
               (compose-region (match-beginning 2)
                               (match-end 2)
                               ?\u03C0)
               nil))))))
Constant: greek-pi
Constant: +greek-pi
Constant: -greek-pi

Evaluate to a constant flonum object representing plus or minus pi.

Constant: greek-pi/2
Constant: +greek-pi/2
Constant: -greek-pi/2

Evaluate to a constant flonum object representing plus or minus pi divided by 2.

Constant: greek-pi/3
Constant: +greek-pi/3
Constant: -greek-pi/3

Evaluate to a constant flonum object representing plus or minus pi divided by 3.

Constant: greek-pi/4
Constant: +greek-pi/4
Constant: -greek-pi/4

Evaluate to a constant flonum object representing plus or minus pi divided by 4.

Constant: greek-pi/6
Constant: +greek-pi/6
Constant: -greek-pi/6

Evaluate to a constant flonum object representing plus or minus pi divided by 6.

Constant: greek-pi*2
Constant: +greek-pi*2
Constant: -greek-pi*2

Evaluate to a constant flonum object representing plus or minus pi multiplied by 2.

Constant: greek-pi*2/3
Constant: +greek-pi*2/3
Constant: -greek-pi*2/3

Evaluate to a constant flonum object representing plus or minus pi multiplied by 2/3.

Constant: greek-pi*3/4
Constant: +greek-pi*3/4
Constant: -greek-pi*3/4

Evaluate to a constant flonum object representing plus or minus pi multiplied by 3/4.