3 <!-- This HTML file has been created by texi2html 1.52
4 from dimension.texi on 7 April 2002 -->
6 <TITLE>Untitled Document
</TITLE>
10 <H1>Untitled Document
</H1>
15 <H2><A NAME=
"SEC1" HREF=
"dimension_toc.html#TOC1">Introduction to the Dimensional Analysis Package
</A></H2>
18 This document describes a new dimensional analysis package for Maxima.
19 There is an older Maxima package for dimensional analysis. The
20 software described in this document differs from the older package.
25 To use the dimensional analysis package, you must first load the file
26 <B>dimension.mac
</B>. Provided this file has been installed in a directory
27 that Maxima can find, load it with the command
30 (C1) load(
"dimension.mac")$
34 Use
<B>qput
</B> to define the dimension of a variable; thus
35 to define
<EM>x
</EM> to be a length,
<EM>t
</EM> a time, and
<EM>c
</EM> a speed, use
38 (C1) qput(x,
"length",dimension)$
39 (C2) qput(t,
"time",dimension)$
40 (C3) qput(c,
"length"/
"time",dimension)$
44 To find the dimension of an expression, use the
<B>dimension
</B> function.
48 (C4) dimension(c*t/
5);
50 (C5) dimension(c-x/t);
57 When an expression is dimensionally inconsistent,
<B>dimension
</B>
58 should signal an error
63 Expression is dimensionally inconsistent.
67 Any symbol may be used to represent a dimension; if you like,
68 you can use
"L" instead of
"length" for the length dimension. It
69 isn't necessary to use strings for the dimensions; however, doing
70 so reduces the chance of conflicting with other variables.
71 Thus to use the dimensions
"M",
"L", and
"T", for mass, length, and time,
72 respectively, use the commands
75 (C1) qput(x,
"L",dimension)$
76 (C2) qput(t,
"T",dimension)$
77 (C3) qput(c,
"L"/
"T",dimension)$
78 (C4) qput(m,
"M",dimension)$
85 (C4) dimension(m * 'diff(x,t));
92 An
<EM>equation
</EM> is dimensionally consistent if either one side of
93 the equality vanishes or if both sides have the same
97 (C5) dimension(x=c*t);
105 Expression is dimensionally inconsistent.
109 The dimension function supports most Maxima operators and it
110 automatically maps over lists. For example,
113 (C1) dimension([x^
3,x.t,x/t,x^^
2]);
115 (D1) [L , L T, -, L ]
120 The dimension of a subscripted symbol is the dimension of the
121 non-subscripted variable. For example,
124 (C1) dimension(x[
3]);
129 When the dimensions of a symbol are undefined, dimension returns
130 an unevaluated expression
138 The remaining functions in the package,
<B>dimensionless
</B>,
139 <B>dimension_as_list
</B>, and
<B>natural_unit
</B> require that
140 all expressions have dimensions that are members of the
141 list
<B>fundamental_dimensions
</B>. The default value of this
145 (C1) fundamental_dimensions;
147 (D1) [mass, length, time]
151 A user may redefine this list; to use
"M",
"L", and
"T" for
152 the fundamental dimensions, make the assignment
155 (C2) fundamental_dimensions : [
"M",
"L",
"T"]$
159 The list
<B>fundamental_dimensions
</B> must be nonempty, but it
160 can have any finite cardinality.
164 To find the dimensions of an expression as a list of the exponents
165 of the fundamental dimensions, use the
<B>dimension_as_list
</B> function
168 (C3) dimension_as_list('diff(x,t,
3));
174 Thus the dimension of the third derivative of x
175 with respect to t is L / T^
3.
179 To find the dimensionless expressions that can be formed as a
180 product of elements of a list of atoms, use the
181 <B>dimensionless
</B> function. For example,
184 (C1) dimensionless([c,t,x]);
186 Dependent equations eliminated: (
1)
193 Finally, to find quantities that have a given dimension, use
194 the
<B>natural_unit
</B> function. To find an expression with
195 dimension time, use the command
198 (C1) natural_unit(
"T",[x,c]);
200 Dependent equations eliminated: (
1)
208 <H2><A NAME=
"SEC2" HREF=
"dimension_toc.html#TOC2">Definitions for Dimensional Analysis
</A></H2>
210 <a name=
"FUNDAMENTAL_DIMENSIONS"></a><P>
212 <DT><U>Variable:
</U> <B>FUNDAMENTAL_DIMENSIONS
</B>
213 <DD><A NAME=
"IDX1"></A>
214 FUNDAMENTAL_DIMENSIONS is a list of the fundamental dimensions. The
215 default value is [
"mass",
"length",
"time"]; however, a user may
216 redefine it to be any nonempty list of atoms. The function
217 <B>dimension
</B> doesn't use this list, but the other functions
218 in the dimensional analysis package do use it.
223 <a name=
"DIMENSION"></a><P>
225 <DT><U>Function:
</U> <B>DIMENSION
</B> <I>(e)
</I>
226 <DD><A NAME=
"IDX2"></A>
227 Return the dimension of the expression e. If
228 e is dimensionally inconsistent, signal an error.
229 The dimensions of the symbols in the expression e
230 should be first defined using
<B>qput
</B>.
235 <a name=
"DIMENSION_AS_LIST"></a><P>
237 <DT><U>Function:
</U> <B>DIMENSION_AS_LIST
</B> <I>(e)
</I>
238 <DD><A NAME=
"IDX3"></A>
239 Return the dimension of the expression e as a list of
240 the exponents of the dimensions in the list
241 <B>fundamental_dimensions
</B>. If e is dimensionally
242 inconsistent, signal an error.
247 <a name=
"DIMENSIONLESS"></a><P>
249 <DT><U>Function:
</U> <B>DIMENSIONLESS
</B> <I>([e1,e2,...,en])
</I>
250 <DD><A NAME=
"IDX4"></A>
254 Return a basis for the dimensionless quantities that can be formed as
255 a product of powers of the expressions e1, e2, ..., en.
260 <a name=
"NATURAL_UNIT"></a><P>
262 <DT><U>Function:
</U> <B>NATURAL_UNIT
</B> <I>(q, [e1,e2,...,en])
</I>
263 <DD><A NAME=
"IDX5"></A>
267 Return a basis for the quantities that can be formed as a product of
268 powers of the expressions e1, e2, ..., en that have the
269 same dimension as does q.
282 This document was generated on
7 April
2002 using the
283 <A HREF=
"http://wwwcn.cern.ch/dci/texi2html/">texi2html
</A>
284 translator version
1.51a.
</P>