Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

how to check for NumericQ arbitrary data structure


Hi,
I have a data structure e.g. {a,{b,c},{d,{e,f},{g}}}, which I want to 
check for NumericQ. For vectors and matrices I can use
VectorQ[x,NumericQ] or MatrixQ[x,NumericQ]. Is there a way to check an 
arbitrary data structure that all elements are NumericQ or I have to 
construct a function for each data structure?
Thanks in advance,
--Ted




  • Prev by Date: Re: Serious Bug in Mathematica 7 and 8.0.4.0 (latest version)
  • Next by Date: Question about DayOfWeek
  • Previous by thread: Re: Find all roots with FindRoot
  • Next by thread: is there internal variable like $0 in perl?