From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50030 Path: news.gmane.org!not-for-mail From: Zhichu Chen Newsgroups: gmane.comp.tex.context Subject: How can I compare picture variables in metapost? Date: Tue, 5 May 2009 20:27:58 +0800 Message-ID: <769ba7780905050527o4f42f9acod279bcce641189c@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241526556 14670 80.91.229.12 (5 May 2009 12:29:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 May 2009 12:29:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 05 14:29:03 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1M1Jld-0008W6-Ev for gctc-ntg-context-518@m.gmane.org; Tue, 05 May 2009 14:29:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 83DAC1FCC6; Tue, 5 May 2009 14:29:00 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11153-01-2; Tue, 5 May 2009 14:28:18 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4B4B01FC9B; Tue, 5 May 2009 14:28:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5FD171FC93 for ; Tue, 5 May 2009 14:28:16 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11153-01 for ; Tue, 5 May 2009 14:28:03 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id 4B6251FC9B for ; Tue, 5 May 2009 14:28:03 +0200 (CEST) Original-Received: from yx-out-1718.google.com (yx-out-1718.google.com [74.125.44.157]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n45CRwAP010779 for ; Tue, 5 May 2009 14:27:59 +0200 Original-Received: by yx-out-1718.google.com with SMTP id 34so2819230yxf.74 for ; Tue, 05 May 2009 05:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=0X6YIe0xJ8xPEoU2vqDksQwpdYUGOVPTZekPu2ezuh0=; b=bbewf4iRFr+p/TsxAyEluBpk6PFRJ7dswL+31HxbLdzP3IFMmpnw0OgS0ft3S5aWjk 4jyM1EhaDtM1IZXqD0zHK1whkZB9KCFzRl9uBB1VdT8hRmQYjIzyW4oqVPIuh4TAsiJd GoSBSwo4vYotvGZSFhZ/cu6ZMvx2RO5gYT2Mc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=yFjJ3yU2kDMXJxHw5TVRtpHUkfma8pl/CD5JLyzsVcU3BSwOw7K6cWQOC0vNahmqG6 oiGLsMYM+0RiiF8AAkVU0naR02qt/FiQJIBolfsB4iCDrTHKgdiFzzMSXOvE8/8FXFAY NhQxHJeiARqQlzDZviJMGmOVTLEc/2aYXiklY= Original-Received: by 10.151.73.8 with SMTP id a8mr137845ybl.134.1241526478139; Tue, 05 May 2009 05:27:58 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.44.157; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 219545114 - fb9a3c06be3d - 20090505 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:50030 Archived-At: Hi all, I want to draw some paths that won't intersect with each other in metapost. Those paths are generated "randomly," e.g., draw 100 circles without any intersections. I use a very stupid way like: ============================================= % randomseed:= day + time*epsilon ; save minL ; numeric minL ; minL = infinity ; z[0] = origin; for i=1 upto 99 : z[i] = (uniformdeviate 1 , uniformdeviate 1 ) ; for j=0 upto i-1 : if abs(z[i]-z[j])