Re: FindRoot with CDF inside
- To: mathgroup at smc.vnet.net
- Subject: [mg71737] Re: FindRoot with CDF inside
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Tue, 28 Nov 2006 06:03:45 -0500 (EST)
- Organization: The Open University, Milton Keynes, UK
- References: <ekecem$j7$1@smc.vnet.net>
Lixin Huang wrote:
> Can somebody help me have a look at the program below? Why
> can't I solve the equaitons? Thanks a lot.
[snip]
> FindRoot::nlnum: The function value {-0.01`-0.42` CDF[NormalDistribution[-1
> .`,
> 1.],-3.6946]-=861=87+0.42 (1. -1. CDF[=8618=87[0.,1.],=8619=87])+0.12 (1. - 1. CDF[
> NormalDistribution[0.,1.],2.]),=861=87} is not a list of numbers with dimensions {2} at {zxl,z0l} == {2.,-2.}. More...
Looking at this error message, I believe that you have forgotten to load
the add-on that defines CDF and NormalDistribution. Add the following
line before your function definition and be sure to evaluate it before
using CDF or NormalDistribution.
<<Statistics`NormalDistribution`
Regards,
Jean-Marc