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


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

Re: Inverse Interpolation

From Fred Simons <f.h.simons@tue.nl>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Inverse Interpolation
Date 2011-08-19 10:38 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j2lefo$ngk$1@smc.vnet.net> (permalink)
References <201108180722.DAA11854@smc.vnet.net>

Show all headers | View raw


The points used by the function Plot can be found in the plot itself:

With[{gr = Plot[Cos[x], {x, -1, 1}]},  Cases[gr, Line[x_] :> x, 
Infinity][[1]]]

Regards,

Fred Simons
Eindhoven University of Technology

Op 18-8-2011 9:22, WetBlanket schreef:
> Previously, the following code could be used to use the Plot functions
> algorithm to select point at which to evaluate a function to assist in
> obtaining a good numerical interpolation.  In Version 8 this code does
> not seem to work ( at least for me).  Can someone assist me by showing
> how this task is best accomplished in Version 8.  I use the Cos
> function in this example for simplicity.  Clearly, numerical
> interpolation is not needed to obtain an inverse for the Cos.
>
> list={};
> F = Cos[x];
>
> Plot[ (  ss=F;  AppendTo[list, {ss,x}]; ss), {x,-1,1}, PlotPoints-
>> 1000,
> PlotRange->All, AxesLabel->{"x","F"}]
>
> Thanks for the help.
>
>

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


Thread

Re: Inverse Interpolation Fred Simons <f.h.simons@tue.nl> - 2011-08-19 10:38 +0000

csiph-web