实干、实践、积累、思考,创新。
费马螺线 Fermat’s spiral的极坐标公式如下:
其中其中 a 为实数,θ为转角。
对于任意给定的正值θ,可以有两个r的取值,分别按以下公式:
我们可以通过以下公式将极坐标转换为笛卡尔坐标:
x = r*cos(θ);
y =r*sin(θ);
接下来可以用过EXCEL绘制费马螺线,如下
最后我们可以把曲线导入之前的编写的 GAAGM软件 [软件][工具][编程] GAAGM: Graph Animation and Animated Gif Maker [曲线图动画及Gif动图生成工具],制作漂亮的曲线动画。
- 相关博文 ( Related Topics)
[01] [编程][算法][几何] 编程训练: 凸包问题 [Convex-Hull Problem]
[02] [编程][算法][几何] 编程训练: 离散点的闭合路径 [Closed Path for points]
[03] [编程][算法][几何] 编程训练: 3次B样条曲线 [Cubic BSpline]
[05] [编程][算法][几何] 编程训练: 3次Bezier曲线 [Cubic Bezier Curve]
[06] [编程][游戏][开发] 编程训练:数独游戏 ( Sudoku )
[07] [编程][软件][Programming] 编程训练:模拟退火算法(Simulated annealing algorithm)
[08] [编程][算法][优化] 编程训练:函数的CONLIN线性化
[09] [编程][算法][优化] 编程训练:函数的移动渐进线(MMA)近似
[09] [编程训练][Programming Training] URL Encode and Decode
[10] [游戏][编程][挑战] Programming challenge: Tetris Game [编程挑战: 俄罗斯方块游戏]
[11] [编程][软件][Tool] 幸运大抽奖程序 Lucky Draw
[12] Buffon’s Needle problem [蒲丰投针问题]
[13] [Game][游戏]CJD Core Ball[见缝插针游戏]
[14] Sierpinski Triangle by 1D Cellular Automata [1D元包自动机实现Sierpinski三角形]
[15] Cellular Automata Forest Fire Model [元包自动机森林火灾模型]
[16] Conway’s Game of Life [生命游戏]
[17] Mandelbrot Set & Julia Set [分形]
[20] [编程训练][Programming Training] Gaussian Distribution (高斯分布)
[21] [编程训练]Programming Training: Get Host
[22] [编程训练]Programming Training: Rotate Text
[23] [编程训练] 离散点的Delaunay三角形剖分( Delaunay triangulation of a point set)
[24] [编程训练] 图像分割 (Image segmentation)
[25] [编程训练] 拼图游戏 (Jigsaw Puzzle Game)
[26] [编程训练][Programming Training] Random number generator – Uniform Distribution (随机数生成器-均匀分布)
[27] [抽奖][软件][编程][年会] 2020公司年会抽奖 (图片抽奖) (RBS16周年纪念版) (Run by souls)
[28] [编程训练][游戏][数学] 红酒杯与白酒杯里到底有多少红酒和白酒?
[29] [数学][算法] 最小二乘法曲线拟合( Least square curve fitting )
[30] [编程][数学][编程训练] |x|^n+|y|^n=1小米logo轮廓曲线
[31] [数学][编程] 蒙特卡洛模拟法求圆周率π (Monte Carlo method to find PI)
[32] [编程训练] BMP图像缩放 (BMP Image scaling)
[33] [编程训练] 粒子群优化算法 [PSO: Particle Swarm Optimization]
[35] [数学][编程][混沌] 虫口模型的数值模拟 [Numerical simulation of insect population model]
- 微信公众号 ( Wechat Subscription)