\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}
\defpersianfont\nazanin[Scale=1.2]{B Nazanin}

\begin{document}
\tableofcontents
\chapter{تقریب}
\section{قضایای سیلو}
\titleformat{\section}{\normalfont\Large\bfseries}{$\star$ \thesection}{1em}{}
\section{معادلات غیر خطی}

\titleformat{\section}{\normalfont\Large\bfseries}{\thesection}{1em}{}
\section{معادلات خطی}
\section{انتگرالهای منفرد}
\end{document}