Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Rainer Rosenthal Newsgroups: comp.soft-sys.math.maple Subject: Test for Matrix type Date: Fri, 23 Sep 2011 11:42:17 +0200 Lines: 18 Message-ID: <9e32joFto3U1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Trace: individual.net hz5uWHmCE8DkMdI4jtKYxg2VxlFw7+iCbJrk6JudIUVQaVvfU= Cancel-Lock: sha1:p30Hz5u1r637BmeBMsPbgyg/Hg4= User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 Xref: x330-a1.tempe.blueboxinc.net comp.soft-sys.math.maple:245 restart: with(LinearAlgebra): A := Matrix([[1,2],[3,4]]); if type(A,integer) then print("I'd be suprised"); else print("I thought so."); fi; if type(A,MatrixType) then print("I'd be glad"); else print("Oops, why not?"); fi; Is there a nice substitute for "MatrixType"? Cheers, Rainer