原始檔案(SVG 檔案,表面大小:422 × 421 像素,檔案大小:26 KB)


摘要

描述
English: Cobweb plot of , an extension of the Collatz map to the real line, studied by Marc Chamberland. The orbit of the starting point is shown in red, with values .
日期
來源 自己的作品
作者 Hugo Spinelli
SVG開發
InfoField
 
SVG檔案的原始碼通過W3C驗證
 
向量圖形使用Inkscape創作。
原始碼
InfoField
Try it here (permalink). Cleaned up with Inkscape afterwards.
SageMath code
var('x')
f = (x/2)*cos(pi*x/2)^2 + ((3*x + 1)/2)*sin(pi*x/2)^2
f_latex = r'$\frac{x}{2}\cdot\cos^2\left(\frac{\pi x}{2}\right) \,+\, \frac{3x + 1}{2}\cdot\sin^2\left(\frac{\pi x}{2}\right)$'

def cobweb(f, x, xmin, xmax, max_iter=100, f_latex=None):
    p = plot(f, (xmin, xmax), ymin=xmin, ymax=xmax, aspect_ratio=1, legend_label=f_latex)
    p += plot(lambda x: x, xmin=xmin, xmax=xmax, color='gray')
    path = [(x, 0)]
    for k in range(max_iter):
        y = f(x=x)
        path.append((x, y))
        x = y
        path.append((x, x))
        if (x, x) in path[:-1]:
            break
    p += line(path, rgbcolor=(1, 0, 0))
    return p

x0 = 10
xmin, xmax = 0, 12
p = cobweb(f, x=x0, xmin=xmin, xmax=xmax, f_latex=f_latex)
config = dict(
    aspect_ratio=1, legend_font_size=13.5, legend_handlelength=1.5, legend_borderpad=0.3, legend_loc='upper left',
    ticks=[[xmin..xmax], [xmin..xmax]], tick_formatter='latex', ticks_integer=True,
    gridlines=True, gridlinesstyle={'linestyle': ':'}
)
show(p, **config)
p.save('Collatz_Cobweb.svg', **config)

授權條款

我,本作品的著作權持有者,決定用以下授權條款發佈本作品:
Creative Commons CC-Zero 此檔案在創用CC CC0 1.0 通用公有領域貢獻宣告之下分發。
在此宣告之下分發本作品者,已依據各國著作權法,在全世界放棄其對本作品所擁有的著作權及所有相關相似的法律權利,從而將本作品貢獻至公有領域。您可以複製、修改、分發和演示該作品,用於任何商業用途,所有這些都不需要請求授權。

說明

添加單行說明來描述出檔案所代表的內容
Cobweb plot of Chamberland's extension of the Collatz map, with the orbit of the starting point x = 10.

在此檔案描寫的項目

描繪內容

蛛網圖 中文 (已轉換拼寫)

沒有維基數據項目的某些值

作者姓名字串 繁體中文 (已轉換拼寫):​Hugo Spinelli
維基媒體使用者名稱 繁體中文 (已轉換拼寫):​Hugo Spinelli

著作權狀態 繁體中文 (已轉換拼寫)

檔案來源 Chinese (Taiwan) (已轉換拼寫)

上傳者的原創作品 繁體中文 (已轉換拼寫)

多媒體型式 繁體中文 (已轉換拼寫)

image/svg+xml

校驗和 繁體中文 (已轉換拼寫)

851e6b2d103653e07f4c8714fcb238e86bbb5b19

斷定方法:​SHA-1 中文 (已轉換拼寫)

26,657 位元組

421 像素

422 像素

檔案歷史

點選日期/時間以檢視該時間的檔案版本。

日期/時間縮⁠圖尺寸用戶備⁠註
目前2023年10月5日 (四) 21:39於 2023年10月5日 (四) 21:39 版本的縮圖422 × 421(26 KB)Hugo SpinelliUploaded own work with UploadWizard

下列頁面有用到此檔案:

全域檔案使用狀況

以下其他 wiki 使用了這個檔案:

詮釋資料