MathGroup Archive 2008

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

Search the Archive

Re: Method Option

Hi Mark,

this is a good first try to find the possible methods, but not

I posted this message to get more insight when reading a post from
Jens Peer Kuska who put a method option to ContourPlot like this:

plt1 = ContourPlot[Sin[x*y], {x, -Pi, Pi}, {y, -Pi, Pi},
   MaxRecursion -> 0, PlotPoints -> 64,
   Method -> {"Refinement" -> {"CellDecomposition" -> "Quad"}}]

I tried what I could imagine to get information about "Refinement",
"CellDecomposition" and "Quad".

So I believe, Methods to be defined as strings are even harder to find.

mark mcclure schrieb:
> On Jul 27, 2:42 am, Peter Breitfeld <ph... at> wrote:
>> A lot of build-in functions in Mathematica have the option Method. Usually
>> this is mentioned in the "More Information" section of the reference page.
>> Most of the time there is the statement Method->Automatic.
>> Take for example ContourPlot:
>>   "Method Automatic the method to use for refining contours"
>> OK, but what other methods do I have then?
> Even though Method -> Automatic appears in the list
> generated by Options[ContourPlot], the option appears
> to be ignored.  Otherwise,
>   ContourPlot[x^2 + y^2, {x, -2, 2}, {y, -2, 2},
>    Method -> Bogus]
> would generate error messages.  Actually, this is a
> good technique find possible options.  Here's an
> example with NIntegrate:
> -----------------------------
> Mathematica 6.0 for Mac OS X x86 (32-bit)
> Copyright 1988-2008 Wolfram Research, Inc.
> In[1]:= NIntegrate[x^2, {x,-2,2}, Method -> Bogus]
> NIntegrate::bdmtd:
>    The Method option should be one of Automatic,
>    CartesianRule, ClenshawCurtisRule,
>    GaussBerntsenEspelidRule, GaussKronrodRule,
>    LobattoKronrodRule, LobattoPeanoRule, MultiPanelRule,
>    NewtonCotesRule, TrapezoidalRule, AdaptiveMonteCarlo,
>    AdaptiveQuasiMonteCarlo, DoubleExponential,
>    DuffyCoordinates, ExtrapolatingOscillatory, MonteCarlo,
>    QuasiMonteCarlo, Trapezoidal, EvenOddSubdivision,
>    SymbolicPiecewiseSubdivision, OscillatorySelection,
>    UnitCubeRescaling, or a user-implemented integration
>    strategy or rule.
> NIntegrate::nsr:
>    Bogus is not a valid specification of an integration
>    strategy or rule.
>                     2
> Out[1]= NIntegrate[x , {x, -2, 2}, Method -> Bogus]
> -------------------------------
> You can find information on the method types by searching
> the documentation.  I don't believe there is standard way
> to do this, though.  I'd like to know a general technique
> to detect which method is selected when Method is set to
> Automatic.
> Mark McClure

Gruss Peter
Peter Breitfeld, Bad Saulgau, Germany --

  • Prev by Date: Re: Adding assumptions to SOLVE
  • Next by Date: Re: How to produce variable substitution list?
  • Previous by thread: Re: Re: Method Option
  • Next by thread: Re: Method Option