# MathPow The function raises a base to a specified power. ``` double  MathPow(    double  base,         // base     double  exponent      // exponent value    ); ``` Parameters base [in]  Base. exponent [in]  Exponent value. Return Value Value of base raised to the specified power. Note Instead of MathPow() you can use pow(). Example: ``` #define GRAPH_WIDTH  750 #define GRAPH_HEIGHT 350   #property script_show_inputs   #include    //--- input parameters input double   InpExponentValue  =  2;    // exponent value   CGraphic ExtGraph; //+------------------------------------------------------------------+ //| Script program start function                                    | //+------------------------------------------------------------------+ void OnStart()   { //--- get 11 values from 0 to 10 with step 1    vector X(11,VectorArange);    Print("vector X = \n",X); //--- calculate each value of the X vector raised to the InpExponentValue power    X=MathPow(X,InpExponentValue);    Print("MathPow(X,",(string)InpExponentValue,") = \n",X);     //--- transfer the calculated values from the vector to the array    double y_array[];    X.Swap(y_array);   //--- draw a graph of the calculated vector values    CurvePlot(y_array,clrDodgerBlue);   //--- wait for pressing the Escape or PgDn keys to delete the graph (take a screenshot) and exit    while(!IsStopped())      {       if(StopKeyPressed())          break;       Sleep(16);      }   //--- clean up    ExtGraph.Destroy();    /*    result:    vector X =     [0,1,2,3,4,5,6,7,8,9,10]    MathPow(X,2.0) =     [0,1,4,9,16,25,36,49,64,81,100]    */   } //+------------------------------------------------------------------+ //| Fill a vector with 'value' in 'step' increments                  | //+------------------------------------------------------------------+ template  void VectorArange(vector &vec,T value=0.0,T step=1.0)    {     for(ulong i=0; i