~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/elementary/typeof.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH typeof G "April 1993" "Scilab Group" "Scilab Function"
 
2
.so ../sci.an
 
3
.SH NAME
 
4
typeof -  object type
 
5
.SH CALLING SEQUENCE
 
6
.nf
 
7
[t]=typeof(object)
 
8
.fi
 
9
.SH PARAMETERS
 
10
.TP 10
 
11
object 
 
12
: Scilab object
 
13
.TP 10
 
14
t
 
15
: string
 
16
.SH DESCRIPTION
 
17
\fVt=typeof(object)\fR returns one of the following strings:
 
18
.TP 
 
19
"constant"       
 
20
if object is a real or complex constant matrix
 
21
.TP 
 
22
"polynomial"  
 
23
if object is a polynomial matrix
 
24
.TP 
 
25
"function"       
 
26
if object is a function
 
27
.TP 
 
28
"string"   
 
29
if object is a matrix made of character strings
 
30
.TP 
 
31
"boolean"     
 
32
if object is a boolean matrix
 
33
.TP 
 
34
"list"        
 
35
if object is a list
 
36
.TP 
 
37
"rational"    
 
38
if object is a rational matrix (transfer matrix)
 
39
.TP 
 
40
"state-space" 
 
41
if object is a state-space model (see \fVsyslin\fR)
 
42
.TP 
 
43
"sparse"      
 
44
if object is a (real) sparse matrix.
 
45
.TP
 
46
"boolean sparse"
 
47
if object is a boolean sparse matrix.
 
48
.SH EXAMPLE
 
49
.nf
 
50
typeof(1)
 
51
typeof(poly(0,'x'))
 
52
typeof(1/poly(0,'x'))
 
53
typeof(%t)
 
54
w=sprand(100,100,0.001);
 
55
typeof(w)
 
56
typeof(w==w)
 
57
deff('y=f(x)','y=2*x');
 
58
typeof(f)
 
59
.fi
 
60
.SH SEE ALSO
 
61
type, strings,  syslin, poly
 
62