Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12205

nnum and NumberQ

From Meriens <meriens@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject nnum and NumberQ
Date 2012-10-29 03:42 +0000
Message-ID <k6ktvi$gkl$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


Hi ti everyone,
I've got a numerical function that I build for calculation of difference of
pression in Psat curve.
My function is quite long and I don't want to bore you with it, but it's
depending on 6 parameters.
Now I'm trying to minimize my function named effe.
the result is that effe has not a numerical value, but my check with the
numbers that shows is not the same.
Any suggestions?



NMinimize[{effe,
  a0 >= 499 && a0 <= 700 && a1 >= -5*10^-3 && a1 <= -2*10^-3 &&
   a2 >= -4*10^-6 && a2 <= -10^-6 && b0 >= 2*10^-2 && b0 <= 8*10^-2 &&
    b1 >= -5*10^-4 && b1 <= -1*10^-4 && b2 >= 5*10^-8 &&
   b2 <= 10*10^-8}, {a0, a1, a2, b0, b1, b2}]
NMinimize::nnum: The function value effe is not a number at
{a0,a1,a2,b0,b1,b2} =
{694.934,-0.00307734,-2.04923*10^-6,0.0758478,-0.00036913,8.10076*10^-8}. >>

NumberQ[effe[
  694.934177451691`, -0.0030773406164581736`, \
-2.0492319442681097`*^-6,
  0.07584781919034586`, -0.00036913014921087793`,
  8.10075813567283`*^-8]]
True.

Thanks a lot in advance.
Mary Ram

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

nnum and NumberQ Meriens <meriens@gmail.com> - 2012-10-29 03:42 +0000

csiph-web