[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Modify text appearance (put spaces after commas just for display)
From: |
Emanuel Berg |
Subject: |
Re: Modify text appearance (put spaces after commas just for display) |
Date: |
Tue, 03 Oct 2017 04:49:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
James K. Lowden wrote:
> Well, as I'm sure you know:
>
> All generalizations are false.
>
> :-)
It seems, after many years doing this,
discussion has finally reached school-boy
level! How about this one?
cats exist
to show
that not everything
has to have a function
Pretty good, ey? :)
Here is another interesting school-boy problem.
The result is 12.6 cm which seems reasonable.
;; if you are making a grid
;; out of beams
;; that are of different sizes
;; it doesn't look asymmetric
;; if you make the *holes* equally big!
(defun compute-wood-distance (total beams)
(let*((sum-beam (apply #'+ beams) )
(space (- total sum-beam))
(num-holes (1+ (length beams)))
(hole-len (/ space num-holes)) )
(message "%.1f cm" hole-len) ))
;; (compute-wood-distance 139 '(6 7 9.5 9.5 9.5 9.5)) ;; 12.6 cm
--
underground experts united
http://user.it.uu.se/~embe8573