MathGroup Archive 2004

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

Search the Archive

Re: exporting the values of evaluated functions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48802] Re: [mg48773] exporting the values of evaluated functions
  • From: Andrzej Kozlowski <akoz at mimuw.edu.pl>
  • Date: Wed, 16 Jun 2004 07:49:06 -0400 (EDT)
  • References: <200406160854.EAA12164@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On 16 Jun 2004, at 17:54, Feleki Zsolt wrote:

> Dear Mathforum!
>
> I have a complicated function defined by the
> integration of another function.
> Plotting the former function using Evaluate is no
> problem, but it is not possible to see or export
> the values of the function explicitly.
> Since Mathematica plots the function, it surely
> has to calculate it, so I am sure there must be a
> way to see also the values that he calculates.
> How?
>
> Bye, Zsolt Feleki
> Doktorand
>
> Hochbautechnik/ Professur für Bauphysik
> ETH Zürich
>

Probably the easiest way is as seen in this example:


f[x_]:=x^2


g=Plot[Evaluate[f[x],{x,1,2}],PlotPoints->5];


Cases[g,Line[x_]->x,Infinity]

{{{1.00000025, 1.0000005000000625}, {1.2434019494374948, 
1.5460484078649623}, {1.5088527991562422, 2.276636769521627},
   {1.7581561980312317, 3.0911132166756357}, {1.9979104466249689, 
3.9916461527331824}, {1.99999975, 3.9999990000000625}}}




Andrzej Kozlowski
Chiba, Japan
http://www.mimuw.edu.pl/~akoz/


  • Prev by Date: Re: Integral of a bivariate function
  • Next by Date: Using NDSolve in NonlinearFit
  • Previous by thread: exporting the values of evaluated functions
  • Next by thread: Re: exporting the values of evaluated functions