Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.maple > #245

Test for Matrix type

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 <r.rosenthal@web.de>
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> (permalink)
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

Show key headers only | View raw


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

Back to comp.soft-sys.math.maple | Previous | NextNext in thread | Find similar


Thread

Test for Matrix type Rainer Rosenthal <r.rosenthal@web.de> - 2011-09-23 11:42 +0200
  Re: Test for Matrix type rouben@shady.(none) (Rouben Rostamian) - 2011-09-23 14:00 +0000
    Re: Test for Matrix type Joe Riel <joer@san.rr.com> - 2011-09-23 07:45 -0700
      Re: Test for Matrix type Rainer Rosenthal <r.rosenthal@web.de> - 2011-09-23 17:03 +0200
    Re: Test for Matrix type Rainer Rosenthal <r.rosenthal@web.de> - 2011-09-23 16:46 +0200

csiph-web