Art of Problem Solving
AoPS Online
Math texts, online classes, and more
for students in grades 5-12.
Visit AoPS Online ‚
Books for Grades 5-12 Online Courses
Beast Academy
Engaging math books and online learning
for students ages 6-13.
Visit Beast Academy ‚
Books for Ages 6-13 Beast Academy Online
AoPS Academy
Small live classes for advanced math
and language arts learners in grades 2-12.
Visit AoPS Academy ‚
Find a Physical Campus Visit the Virtual Campus
Sign In
Register
online school
Class Schedule Recommendations Olympiad Courses Free Sessions
bookstore
AoPS Curriculum Beast Academy Online Books Recommendations Other Books & Gear All Products Gift Certificates
community
Forums Contests Search Help
resources
math training & tools Alcumus Videos For the Win! MATHCOUNTS Trainer AoPS Practice Contests AoPS Wiki LaTeX TeXeR MIT PRIMES/CrowdMath Keep Learning All Ten
contests on aops Practice Math Contests USABO
news AoPS Blog Webinars
view all 0
Sign In
Register
AoPS Wiki
Resources Aops Wiki User:Daybreakstudent

Page

User pageDiscussionView sourceHistory

Toolbox

Recent changesRandom pageHelpWhat links hereUser contributionsLogsView user groupsSpecial pages

Search

User:Daybreakstudent

Revision as of 23:03, 30 June 2022 by Daybreakstudent (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

[asy] // Copyright (c) 2007, Philippe Ivaldi. // Version: $Id: edvenn_pi.asy,v 0.0 2007/02/19 17:49:31 Philippe Ivaldi Exp $  // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or (at // your option) any later version.  // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // General Public License for more details.  // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA // 02110-1301, USA.  // Commentary:  // THANKS:  // BUGS:  // INSTALLATION:  // Code:   // Venn diagram // Diagramme de Venn // Edwards' construction // Construction d'Edwards import roundedpath; size(10cm,0); path [] EdVenn(int n) { path [] opath; if (n>=1) opath.push(shift(-1.4,-.9)*roundedpath(xscale(2.8)*yscale(.9)*unitsquare,.1)); if (n>=2) opath.push(shift(0,-.9)*roundedpath(xscale(1.4)*yscale(1.8)*unitsquare,.1)); if (n>=3) opath.push(scale(.5)*unitcircle); for (int i=1; i<=n-3; ++i) { pair pcle=point(opath[2],1/(2^i)), ccle=intersectionpoint(pcle--(pcle-dir(opath[2],1/(2^i))), (0,0)--(1,0)); path cle=shift(ccle)*scale(abs(pcle-ccle))*unitcircle; real[] p1=intersect(cle, opath[2]); path ocle=subpath(cle,-p1[0],p1[0]); guide tpath; real step=360/(2^i), a=0; for (int j=0; j<2^i; ++j) { tpath=tpath..rotate(a)*ocle; a+=step; } opath.push(tpath..cycle); } return opath; }  size(10cm,0); draw(EdVenn(15));[/asy]

Retrieved from "https://artofproblemsolving.com/wiki/index.php?title=User:Daybreakstudent&oldid=175521"
Art of Problem Solving is an
ACS WASC Accredited School
aops programs
AoPS Online
Beast Academy
AoPS Academy
About
About AoPS
Our Team
Our History
Jobs
AoPS Blog
Site Info
Terms
Privacy
Contact Us
follow us
Subscribe for news and updates
© 2025 AoPS Incorporated
© 2025 Art of Problem Solving
About Us  •  Contact Us  •  Terms  •  Privacy
Copyright © 2025 Art of Problem Solving

Something appears to not have loaded correctly.

Click to refresh.