KochCurve
范例
打开所有单元 关闭所有单元基本范例 (2)
Graphics[KochCurve[2]]Table[ArcLength[KochCurve[n]], {n, 5}]//RationalizeFindSequenceFunction[%, n]Table[Graphics[GeometricTransformation[KochCurve[i], {RotationTransform[Pi, {1 / 2, 0}], RotationTransform[-Pi / 3, {1, 0}], RotationTransform[Pi / 3, {0, 0}]}]], {i, 4}]范围 (7)
曲线指定 (3)
曲线样式 (4)
Table[Graphics[{Thickness[i], KochCurve[3]}], {i, {Medium, Large}}]Table[Graphics[{Thickness[i], KochCurve[2]}], {i, {.005, .05, .1}}]Table[Graphics[{AbsoluteThickness[i], KochCurve[2]}], {i, {1, 5, 10}}]Table[Graphics[{Dashing[i], KochCurve[3]}], {i, {Tiny, Small, Medium, Large}}]Table[Graphics[{d, KochCurve[3]}], {d, {Dotted, Dashed, DotDashed}}]Table[Graphics[{c, KochCurve[3]}], {c, {Red, Green, Blue, Yellow}}]选项 (1)
DataRange (1)
DataRange 允许指定所生成的网格坐标的范围:
KochCurve[1]KochCurve[1, DataRange -> {{-1, 1}, {-1, 1}}]应用 (4)
KochCurve 产生过程是重复移除单元的中间的三分之一,并用一个三角形进行替换:
Column[Table[Graphics[KochCurve[n]], {n, 1, 3}]]Graphics[KochCurve[3, {0, 85°, -85°, -85°, 85°}]]Graphics[KochCurve[3, {0, 90°, -90°, -90°, 90°}]]Graphics[KochCurve[3, {{1, 0}, {1, 90°}, {1, -90°}, {2, -90°}, {1, 90°}, {1, 90°}, {1, -90°}}]]属性和关系 (3)
KochCurve 由线段组成:
KochCurve[1]AnglePath 可用来生成科赫曲线的第一次迭代:
path = {{1, 0}, {1, 90°}, {1, -90°}, {1, -90°}, {1, 0°}, {1, 90°}, {1, 90°}, {1, -90°}};{Graphics[KochCurve[1, path]], Graphics[Line[AnglePath[path]]]}DataRange -> range 等价于使用 RescalingTransform[{...},range]:
Region[KochCurve[2, DataRange -> {{1, 2}, {1, 3}}], Frame -> True]box = TransformedRegion[mr = KochCurve[2], RescalingTransform[RegionBounds[mr], {{1, 2}, {1, 3}}]];Region[box, Frame -> True]相关指南
文本
Wolfram Research (2017),KochCurve,Wolfram 语言函数,https://reference.wolfram.com/language/ref/KochCurve.html.
CMS
Wolfram 语言. 2017. "KochCurve." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/KochCurve.html.
APA
Wolfram 语言. (2017). KochCurve. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/KochCurve.html 年
BibTeX
@misc{reference.wolfram_2026_kochcurve, author="Wolfram Research", title="{KochCurve}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/KochCurve.html}", note=[Accessed: 03-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_kochcurve, organization={Wolfram Research}, title={KochCurve}, year={2017}, url={https://reference.wolfram.com/language/ref/KochCurve.html}, note=[Accessed: 03-November-2026]}