What wrong with my calculation.the problem is from the attachment.(adsbygoogle = window.adsbygoogle || []).push({});

It keeps saying:

NMinimize::nnum: "The function value {10721.1} is not a number at {rs,x} = {1.91862,1.66351}. "

My code:

XDDO154[x_, rs_] :=

Sum[(DDO154vobs[] -

Sqrt[(4 Pi*(43.040600502)*x*

rs^(3)/(DDO154pc[]))*(-DDO154pc[]/(DDO154pc[] +

rs) + Log[((DDO154pc[] + rs)/rs)])])^2/

DDO154err[], {i, 1, 61}]

NMinimize[{XDDO154[x, rs], 0 < x && 0 < rs}, {x, rs}, Method -> "DifferentialEvolution"]

(DDO1254pc, DDO154err are tables)

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# NMinimize with Mathematica

Loading...

Similar Threads - NMinimize Mathematica | Date |
---|---|

A DiLog output in mathematica | Oct 25, 2017 |

I One dimensional integration that Mathematica cannot do | Mar 14, 2016 |

Convergence of a hypergeometric | Jul 20, 2015 |

Wolfram Mathematica: ListPlot3D to SphericalPlot3D | Jul 2, 2015 |

**Physics Forums - The Fusion of Science and Community**