She swaying in the wind - Mei Fern (realized in matlab)

content

1 She swaying in the wind

2 Philosophy brought by swaying

3 Matlab code implementation


1 She swaying in the wind

Dreamy scenes, romantic atmosphere, bring your loved ones, hug under this sea of ​​flowers, you will have the atmosphere of the hero and heroine of the movie;

Even if you read all the world's features, it can't be compared to the short and long love when you are with her, and the beams of light are intertwined and entwined.

The romance I owe her, I make up for it with the rest of my life, the fern is beautiful, and I miss her swaying in the wind.

2 Philosophy brought by swaying

The earliest ancient civilization, ancient Egypt, has a disordered development today, and its social development is unclear. Why? It has not cleaned up its own traditional culture. Since the beginning of the last century, the Chinese people constantly reflected on and cleaned up their own traditional culture, thus removing the ideological and cultural barriers to social transformation to a certain extent, which constituted a breakthrough in China's modern reform and opening up. This is what everyone should pay attention to and understand. of. So when we talk about the extremely high value of traditional culture, please remember that it is a time category in the evolution and development of human society, not an eternal value.


At the same time we can never abandon its base layer frame of reference. We all know that we have been using two words in the discussion of traditional Chinese culture in modern times, called dross and essence. But no scholar can say clearly, which part of Chinese traditional culture is the essence and which is the dross?

 

In fact, dross and essence can only be viewed in this way: as long as you apply ancient culture directly, its expression is dross; if you use its underlying thoughts as a reference system, every bit of it is the essence . Let me give an example. Isn't it a joke when you use "men and women's great defense" today? Isn't it dross? You use the rule of virtue to rule the country today and oppose the rule of law. Isn't it dross or a joke?
But you turn it around and use it as a reference Look at it the way it is connected, and it's all essence. The culture of attaching importance to morality is the foundation of human existence. If it cannot be maintained, it marks the expression of the comprehensive crisis of human beings in the form of ideology and culture.
On an operational level, direct application of ancient cultures is used without discrimination. No matter how good the culture is, it is dross. At the level of the ideological reference system, the bits and pieces of traditional culture are the reference system of the ultimate evaluation and the reference system of the base layer, which makes it appear to be all the essence. This is our view and evaluation of traditional culture, as well as our attention and focus on its application point. When I talk about Confucius today, I will first talk about the general background of the era in which Confucius lived, the first major social transformation in China's pre-Qin era, the three basic elements that Confucianism combines with human primitive culture, and the way Confucius culture came into being. The hotbed and soil of the survival structure of East Asia, it describes the brief introduction of Confucius' life, and the evaluation of his pragmatic achievements. Finally, it discusses the meaning of the basic reference frame of the culture of emphasizing morality.

3 Matlab code implementation

function wulizi(n, REPS)
%% ====欢迎关注公众号:电力系统与算法之美=======
if nargin < 1, n = 50000; end
if n <= 2000, dotsize = 6; else dotsize = 1; end

%% 使曲率矩阵变平,以使JIT可用
p1  =  .85;  p2  =  .92;  p3  = .99;

A11 =  .85;  A12 =  .04;              A22 = A11;
B11 =  .20;  B12 = -.26;  B21 = .23;  B22 = .22;
C11 = -.15;  C12 =  .28;  C21 = .26;  C22 = .24;
D22 =  .16;

b1 = 1.4;  b2 = 1.6; b3 = 0.44;

wave    = A12;
newleft = wave;
xs = zeros(1,n);
ys = zeros(1,n);

%% 可视化
figure(gcf)                                       % on top
set(gcf, 'color','white','menubar','none', 'numbertitle','off',...
    'name', '随风摇曳的清香', 'doublebuff', 'on');
darkgreen = [0 2/3 0];                            % fern-ish
h = plot(xs, ys, '.','markersize',dotsize,'color',darkgreen);
axis([-4 4 0 10])                                 % set size
axis off                                          % make pretty

%% 开始演示
if nargin < 2; REPS = 10; end
for rp = 1:REPS
    oldleft = newleft;
    newleft = -wave+(rand-.5)/20;
    right   = +wave-(rand-.5)/20;
    delta   =  (right-newleft)/20;
    t1 = 0; t2 = 0;                                 % costs
    for w = [oldleft:delta:right, right:-delta:newleft]
        tstart = tic;                                 % start time compute
        x  = .5;  y = .5;
        for j = 1:n
            xs(j) = x;
            ys(j) = y;
            r = rand;
            if r < p1
                t = A11*x + w*y;                          % rotate and scale
                y = -w*x + A22*y + b1;
                x = t;
            elseif r < p2
                b1 = 1.5;
                t = B11*x + B12*y;
                y = B21*x + B22*y + b2;
                x = t;
            elseif r < p3
                t = C11*x + C12*y;
                y = C21*x + C22*y + b3;
                x = t;
            else                                        % the stem
                y = D22*y;
                x = 0;
            end
        end
        t1 = t1 + toc(tstart);                        % end time compute
        tstart = tic();                               % start time plot
        set(h,'xdata', xs, 'ydata', ys);
        drawnow;
        pause(rand/100);                              % slow to human speed
        t2 = t2 + toc(tstart);                        % end time plot
    end
    %fprintf('rep=%d compute=%.1g secs plot=%.1g secs\n', reps, t1, t2);
end

 



 

Guess you like

Origin blog.csdn.net/weixin_46039719/article/details/123773311
Recommended