\documentclass[openany,12pt,a4paper]{book}
\usepackage{graphicx,amsmath,amssymb,amsthm,fancyvrb}
\usepackage{fancyhdr,makeidx,amsfonts,bidicode,tabularx}
\usepackage{cool,tikz,subfigure}
\usepackage{titlesec}
\usepackage{xepersian}
\makeindex

\DeclareMathAlphabet{\mathbfit}{OML}{cmm}{b}{it}
%تنظیم فاصله خطوط 
\renewcommand{\baselinestretch}{1.3}
%فونت های به کار گرفته شده در کتاب
\settextfont[Scale=1]{XB Yas}
\setdigitfont[Scale=1]{Yas}


\begin{document}
\tableofcontents
\chapter{تقریب}
\renewcommand{\thesection}{\hspace{2mm} \arabic{section}.\arabic{chapter}}
\section{قضایای سیلو}
\renewcommand{\thesection}{$\star$ \arabic{section}.\arabic{chapter}}
\section{معادلات غیر خطی}

\renewcommand{\thesection}{\hspace{2mm} \arabic{section}.\arabic{chapter}}
\section{معادلات خطی}
\section{انتگرالهای منفرد}
\end{document}