MATLAB POLYSPACE RELEASE NOTES Manuale Utente Pagina 168

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 240
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 167
4 Programming
The graph
shows that the function has a local minimum near x =0.6. The
function
fminsearch finds the minimizer,thevalueofx where the function
takes on t
his minimum. The first argument to
fminsearch is a function
handle to
the function being minimized and the second argument is a rough
guess at
the location of the minimum:
p = fminsearch(@humps ,.5)
p=
0.6370
To evaluate the function at the minimizer,
humps(p)
ans =
11.2528
Numerical analysts use the terms quadrature and integration to disti nguish
between num erical approx imatio n of definite integrals and numerical
integration of ordinary differential equations. MATLAB quadrature routines
are
quad and quadl.Thestatement
4-30
Vedere la pagina 167
1 2 ... 163 164 165 166 167 168 169 170 171 172 173 ... 239 240

Commenti su questo manuale

Nessun commento