\documentclass{article}
\usepackage{CJKutf8}
\usepackage{tikz}
\usepackage{mathpazo}
\usetikzlibrary{shapes.geometric,arrows}
\pagestyle{empty}
\begin{document}
\begin{CJK}{UTF8}{gbsn}
\tikzstyle{startstop}=[rectangle,rounded corners,minimum width=3cm,minimum height=1cm,text centered,draw=black,fill=red!30]
\tikzstyle{io}=[trapezium,trapezium left angle=70,trapezium right angle=110,minimum width=3cm,minimum height=1cm,text centered,draw=black,fill=blue!30]
\tikzstyle{process}=[rectangle,minimum width=3cm,minimum height=1cm,text centered,draw=black,fill=orange!30]
\tikzstyle{decision}=[diamond,minimum width=3cm,minimum height=1cm,text centered,draw=black,fill=green!30]
\tikzstyle{arrow}=[thick,->,>=stealth]
\begin{tikzpicture}[node distance=2cm]
\node(start)[startstop]{开始};
\node(in1)[io,below of=start]{输入$y=f(x),i=1$};
\node(pro1)[process,below of=in1]{$g(x)=derivative(f,i)$};
\node(dec1)[decision,below of=pro1,yshift=-.5cm]{$g(x)=0$可解};
\node(pro2a)[process,below of=dec1,yshift=-0.5cm]{解$g(x)=0$};
\node(pro2b)[process,right of=dec1,xshift=2cm]{$i=i+1$};
\node(out1)[io,below of=pro2a]{输出$x$};
\node(stop)[startstop,below of=out1]{结束};
\draw[arrow](start)--(in1);
\draw[arrow](in1)--(pro1);
\draw[arrow](pro1)--(dec1);
\draw[arrow](dec1)--(pro2a);
\draw[arrow](dec1)--node[anchor=east]{是}(pro2a);
\draw[arrow](dec1)--node[anchor=north]{否}(pro2b);
\draw[arrow](pro2b)|-(pro1);
\draw[arrow](pro2a)--(out1);
\draw[arrow](out1)--(stop);
\end{tikzpicture}
\end{CJK}
\end{document}
这个流程图是我对导数综合题算法的一种理解。可以说在使用流程图了。但是花费的时间是40分钟。时间啊!记得曾经总是希望时间快快过去,现在却希望时间慢一点。
自我表扬:没有再看原代码,