how to check for NumericQ arbitrary data structure
- To: mathgroup at smc.vnet.net
- Subject: [mg126191] how to check for NumericQ arbitrary data structure
- From: Ted Sariyski <tsariysk at craft-tech.com>
- Date: Tue, 24 Apr 2012 05:32:54 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201204201144.HAA21808@smc.vnet.net> <201204210431.AAA29236@smc.vnet.net>
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
- Follow-Ups:
- Re: how to check for NumericQ arbitrary data structure
- From: Christoph Lhotka <christoph.lhotka@fundp.ac.be>
- Re: how to check for NumericQ arbitrary data structure
- References:
- Find all roots with FindRoot
- From: Sam Takoy <sam.takoy@yahoo.com>
- Re: Find all roots with FindRoot
- From: "Harvey P. Dale" <hpd1@nyu.edu>
- Find all roots with FindRoot