MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: What is the algorithm Mathematica uses to detrmine

  • To: mathgroup at smc.vnet.net
  • Subject: [mg84876] Re: [mg84861] What is the algorithm Mathematica uses to detrmine
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 17 Jan 2008 07:01:01 -0500 (EST)
  • Reply-to: hanlonr at cox.net

Use AbsoluteOptions

p = Plot[PDF[ChiSquareDistribution[0.2], x], {x, 0, 10}, 
   PlotRange -> {{0, 10}, Automatic}]

AbsoluteOptions[p, PlotRange]

{PlotRange -> {{0., 10.}, 
       {0., 0.0616513786100443}}}

PlotRange /. AbsoluteOptions[p]

{{0., 10.}, {0., 
     0.0616513786100443}}


Bob Hanlon

---- Nasser Abbasi <nma at 12000.org> wrote: 
> In Mathematic 6, when I do say
> 
> Plot[PDF[ChiSquareDistribution[0.2], x], {x, 0, 10}, PlotRange -> {{0, 10}, 
> Automatic}]
> 
> You'll see that it decided on some cut-off for the plot on the y-axis, which 
> seems reasonable.
> 
> Documentation says that 'outlying points are dropped'
> 
> How does it decide where to do the cut of? and more importantly, can one 
> query this automatic range using some command or option?
> 
> I know offcourse I could do this
> 
> p=Plot[...]
> FullForm[p]
> 
> and I see what the full command used, and I see the plot range used, which 
> in the above example is
> 
>     "PlotRange -> {{0, 10}, {0., 0.0616513786100442}}"
> 
> But how can one obtain information,  from FullForm in the code? Is there an 
> API to query FullForm of expressions for subexpressions in it? Parse it? 
> Search it?
> 
> thanks,
> Nasser
> 
> 



  • Prev by Date: Putting an expression into a module
  • Next by Date: Time complexity of constrained local optimization
  • Previous by thread: Re: Putting an expression into a module
  • Next by thread: Time complexity of constrained local optimization