Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #8684
| From | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: good list |
| Date | 2012-02-22 10:33 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ji2g9c$kam$1@smc.vnet.net> (permalink) |
On 2/21/12 at 6:15 AM, Roberto.Brambilla@rse-web.it (Brambilla
Roberto Luigi (RSE)) wrote:
>I have a function myfunc[x] (of some complexity) and I want to
>build the list of its values in the interval (a<=x<=b) with step
>dx=(b-a)/nstep
>nstep=100;
>mylist=Table[{x,myfunc[x],{x,a,b,(b-a)/nstep}];
>According to the input value, sometimes myfunc[x] is not able to
>give a numeric result
>(in my case a singular difficult numerical integral) . In others
>cases it works fine.
>My question is how to build the list with only the good cases.
Try
mylist=Cases[Table[{x,myfunc[x],{x,a,b,(b-a)/nstep}],{_,_?NumericQ}]
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: good list Bill Rowe <readnews@sbcglobal.net> - 2012-02-22 10:33 +0000
csiph-web