파일:Centers8.png
testwiki
둘러보기로 이동
검색으로 이동
미리 보기 크기: 752 × 599 픽셀 다른 해상도: 301 × 240 픽셀 | 602 × 480 픽셀 | 1,000 × 797 픽셀
원본 파일 (1,000 × 797 픽셀, 파일 크기: 781 KB, MIME 종류: image/png)
이 파일은 위키미디어 공용에 있으며, 다른 프로젝트에서 사용하고 있을 가능성이 있습니다. 해당 파일에 대한 설명이 아래에 나와 있습니다.
파일 설명
| 설명Centers8.png |
English: Centers of 983 hyperbolic components of Mandelbrot set with respect to complex quadratic polynomial for period 1-10
Polski: Punkty centralne 983 składowych zbioru Mandelbrota dla okresów 1-10
|
| 날짜 | 4.01.2009 |
| 출처 | 자작 |
| 저자 | Adam majewski |
Long description
Program input
No input is needed
Program output
- png file : centers_9_new.png
- txt files with numerical values of centers in big float Maxima format ( one file for each period)
Parts of the program
- definition of functions and constants
- loading packages
- for periods 1-period_Max
- computation of irreducible polynomials for each period
- computation of centers for each period : centers[period]
- saving centers to text files : centers_bf_p.txt
- computes number of centers for each period ( l[period]) and for all periods 1-period_Max ( N_of_centers)
- drawing to centers_9_new.png file
Software needed
- Maxima CAS
- cpoly package written in Lisp by Raymond Toy containing bfallroots function finding roots of complex polynomials by Jenkins-Traub algorithm. It is in file cpoly.lisp in src directory ( for example in Maxima-5.16.3\share\maxima\5.16.3\src )
- draw package - Maxima-Gnuplot interface archive copy at the Wayback Machine by Mario Rodriguez Riotorto archive copy at the Wayback Machine
- gnuplot for drawing ( creates png file )
Tested on versions:
- wxMaxima 0.7.6
- Maxima 5.16.3
- Lisp GNU Common Lisp (GCL) GCL 2.6.8 (aka GCL)
- Gnuplot Version 4.2 patchlevel 3
Algorithm
See Wikibooks for detailes
Questions
- Can it be done for higher periods ? For me (GCL and wxMaxima) it fails for period 10 and precision[1] fpprec:150 or 256, but for period 10 and fpprec:300 I can run it from console or XMaxima, not wxMaxima
- How to save it as svg file ?
Compare with :
- centers 1-12 archive copy at the Wayback Machine made with Maxima, Eigensolve and Gnuplot
- centers of period 10 made with MPSolve and Gnuplot
- http://math.stackexchange.com/questions/2205922/critical-polynomial-roots-bigger-than-2
Maxima CAS src code
/*
Maxima batch script
because :
"this does works in the console and xMaxima, but not in wxMaxima " Julien B. O. - jul059
http://sourceforge.net/tracker/index.php?func=detail&aid=1571099&group_id=4933&atid=104933
handling of large factorials
for periods >=10 run from console or XMaxima, not wxMaxima
for example from console under windows run:
cd C:\Program Files\Maxima-5.16.3\bin
maxima
batch("D:/doc/programming/maxima/batch/MandelbrotCenters/mset_centers_10_new_png.mac")$
----------------
notation and idea is based on paper :
V Dolotin , A Morozow : On the shapes of elementary domains or why Mandelbrot set is made from almost
ideal circles ?
*/
start:elapsed_run_time ();
load(cpoly);
period_Max:10;
/* basic funtion = monic and centered complex quadratic polynomial
http://en.wikipedia.org/wiki/Complex_quadratic_polynomial
*/
f(z,c):=z*z+c $
/* iterated function */
fn(n, z, c) :=
if n=1 then f(z,c)
else f(fn(n-1, z, c),c) $
/* roots of Fn are periodic point of fn function */
Fn(n,z,c):=fn(n, z, c)-z $
/* gives irreducible divisors of polynomial Fn[p,z=0,c] */
GiveG[p]:=
block(
[f:divisors(p),t:1],
g,
f:delete(p,f),
if p=1
then return(Fn(p,0,c)),
for i in f do t:t*GiveG[i],
g: Fn(p,0,c)/t,
return(ratsimp(g))
)$
/* use :
load(cpoly);
roots:GiveRoots_bf(GiveG[3]);
*/
GiveRoots_bf(g):=
block(
[cc:bfallroots(expand(%i*g)=0)],
cc:map(rhs,cc),/* remove string "c=" */
return(cc)
)$
GiveCenters_bf(p):=
block(
[g,
cc:[]],
fpprintprec:10, /* number of digits to display */
if p<7 then fpprec:16
elseif p=7 then fpprec:32
elseif p=8 then fpprec:64
elseif p=9 then fpprec:128
elseif p=10 then fpprec:300,
g:GiveG[p],
cc:GiveRoots_bf(g),
return(cc)
);
N_of_centers:0;
for period:1 thru period_Max step 1 do
(
centers[period]:GiveCenters_bf(period), /* compute centers */
/* save output to file as Maxima expressions */
stringout(concat("centers_bf_",string(period),".txt"),centers[period]),
l[period]: length(centers[period]),
N_of_centers:N_of_centers+l[period]
);
stop:elapsed_run_time ();
time:fix(stop-start);
load(draw);
draw2d(
file_name = "centers_10_new",
terminal = 'png,
pic_width=1000,
pic_height= 1000,
yrange = [-1.5,1.5],
xrange = [-2.5,0.5],
title= concat("centers of ",string(N_of_centers)," hyperbolic components of Mandelbrot set for periods 1- ",string(period_Max)," made in ",string(time)," sec"),
user_preamble="set size square;set key out;set key top left",
xlabel = "re ",
ylabel = "im",
point_type = filled_circle,
points_joined = false,
point_size = 0.5,
/* in reversed order of periods because number of centers is proportional to period */
key = concat(string(l[10])," period 10 components"),
color =purple,
points(map(realpart, centers[10]),map(imagpart, centers[10])),
key = concat(string(l[9])," period 9 components"),
color =gray,
points(map(realpart, centers[9]),map(imagpart, centers[9])),
key = concat(string(l[8])," period 8 components"),
color =black,
points(map(realpart, centers[8]),map(imagpart, centers[8])),
key = concat(string(l[7])," period 7 components"),
color =navy,
points(map(realpart, centers[7]),map(imagpart, centers[7])),
key = concat(string(l[6])," period 6 components"),
color =yellow,
points(map(realpart, centers[6]),map(imagpart, centers[6])),
key = concat(string(l[5])," period 5 components"),
color =brown,
points(map(realpart, centers[5]),map(imagpart, centers[5])),
key = concat(string(l[4])," period 4 components"),
color =magenta,
points(map(realpart, centers[4]),map(imagpart, centers[4])),
key = concat(string(l[3])," period 3 components"),
color =blue,
points(map(realpart, centers[3]),map(imagpart, centers[3])),
key = concat(string(l[2])," period 2 components"),
color =green,
points(map(realpart, centers[2]),map(imagpart, centers[2])),
key = concat(string(l[1])," period 1 component "),
color =red,
points(map(realpart, centers[1]),map(imagpart, centers[1]))
)$
References
라이선스
나는 아래 작품의 저작권자로서, 이 저작물을 다음과 같은 라이선스로 배포합니다:
이 파일은 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 Unported 라이선스로 배포됩니다.
- 이용자는 다음의 권리를 갖습니다:
- 공유 및 이용 – 저작물의 복제, 배포, 전시, 공연 및 공중송신
- 개작 – 저작물의 개작, 수정, 2차적저작물 창작
- 다음과 같은 조건을 따라야 합니다:
- 저작자표시 – 적절한 저작자 표시를 제공하고, 라이선스에 대한 링크를 제공하고, 변경사항이 있는지를 표시해야 합니다. 당신은 합리적인 방식으로 표시할 수 있지만, 어떤 방식으로든 사용권 허가자가 당신 또는 당신의 사용을 지지하는 방식으로 표시할 수 없습니다.
- 동일조건변경허락 – 만약 당신이 이 저작물을 개작 또는 변형하거나 이 저작물을 기반으로 제작하는 경우, 당신은 당신의 기여물을 원저작물과 동일하거나 호환 가능한 라이선스에 따라 배포하여야 합니다.
| GNU 자유 문서 사용 허가서 1.2판 또는 자유 소프트웨어 재단에서 발행한 이후 판의 규정에 따라 본 문서를 복제하거나 개작 및 배포할 수 있습니다. 본 문서에는 변경 불가 부분이 없으며, 앞 표지 구절과 뒷 표지 구절도 없습니다. 본 사용 허가서의 전체 내용은 GNU 자유 문서 사용 허가서 부분에 포함되어 있습니다.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
이 라이선스 중에서 목적에 맞는 것을 선택하여 사용할 수 있습니다.
설명
이 파일이 나타내는 바에 대한 한 줄 설명을 추가합니다
이 파일에 묘사된 항목
다음을 묘사함
위키데이터 항목 없는 어떤 값
image/png
800,197 바이트
797 화소
1,000 화소
파일 역사
날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.
| 날짜/시간 | 섬네일 | 크기 | 사용자 | 설명 | |
|---|---|---|---|---|---|
| 현재 | 2017년 5월 6일 (토) 11:02 | 1,000 × 797 (781 KB) | wikimediacommons>Shiftchange | Cropped white space above and below image. |
이 파일을 사용하는 문서
이 파일을 사용하는 문서가 없습니다.