Ticket #35: correctheadings.patch
| File correctheadings.patch, 55.7 kB (added by dietmarw, 11 months ago) |
|---|
-
home/dietmarw/.workspace/ModelicaReference/package.mo
51 51 class Block "block" 52 52 53 53 annotation (Documentation(info="<html> 54 <h3><font color=\"#008000\" size=5>block</font></h3> 54 55 55 <p> 56 56 Define specialized class <i>block</i> 57 57 </p> 58 <h 3><font color=\"#008000\">Examples</font></h3>58 <h4>Examples</h4> 59 59 60 60 <pre><b>block</b> Integrator 61 61 <b>input</b> Real u; … … 67 67 y = x; 68 68 <b>end</b> Integrator;</pre> 69 69 70 <h 3><font color=\"#008000\">Syntax</font></h3>70 <h4>Syntax</h4> 71 71 72 72 <PRE> [ <B>encapsulated</B> ][ <B>partial </B>] <B>block</B> 73 73 IDENT class_specifier … … 79 79 80 80 <p>See Modelica Language Specification for further details.</p> 81 81 82 <h 3><font color=\"#008000\">Description</font></h3>82 <h4>Description</h4> 83 83 <P> 84 84 A block class is the same as a model class 85 85 with the restriction that each connector component of a block must … … 95 95 class Class "class" 96 96 97 97 annotation (Documentation(info="<html> 98 <h3><font color=\"#008000\" size=5>class</font></h3> 98 99 99 <p> 100 100 Define class 101 101 </p> 102 <h 3><font color=\"#008000\">Examples</font></h3>102 <h4>Examples</h4> 103 103 104 104 <pre><b>class</b> MyTable 105 105 <b>extends</b> ExternalObject; … … 112 112 <b>end</b> destructor; 113 113 <b>end</b> MyTable;</pre> 114 114 115 <h 3><font color=\"#008000\">Syntax</font></h3>115 <h4>Syntax</h4> 116 116 <PRE> [ <B>encapsulated</B> ][ <B>partial </B>] <B>class</B> 117 117 IDENT class_specifier 118 118 … … 123 123 124 124 <p>See Modelica Language Specification for further details.</p> 125 125 126 <h 3><font color=\"#008000\">Description</font></h3>126 <h4>Description</h4> 127 127 128 128 <p> 129 129 The keyword class is used to define general classes (without any restrictions). … … 138 138 class Connector "connector" 139 139 140 140 annotation (Documentation(info="<html> 141 <h3><font color=\"#008000\" size=5>connector</font></h3> 141 142 142 <p> 143 143 Define specialized class <i>connector</i> 144 144 </p> 145 <h 3><font color=\"#008000\">Examples</font></h3>145 <h4>Examples</h4> 146 146 147 147 <pre><b>connector</b> flange 148 148 Modelica.SIunits.Angle phi; 149 149 <b>flow</b> Modelica.SIunits.Torque tau; 150 150 <b>end</b> flange;</pre> 151 151 152 <h 3><font color=\"#008000\">Syntax</font></h3>152 <h4>Syntax</h4> 153 153 <PRE> [ <B>encapsulated</B> ][ <B>partial </B>] <B>connector</B> 154 154 IDENT class_specifier 155 155 … … 160 160 161 161 <p>See Modelica Language Specification for further details.</p> 162 162 163 <h 3><font color=\"#008000\">Description</font></h3>163 <h4>Description</h4> 164 164 <P>The keyword connector is used to define connectors, which are used 165 165 in connect statements. In connectors, no equations are allowed in the 166 166 definition or in any of its components. … … 173 173 class Function "function" 174 174 175 175 annotation (Documentation(info="<html> 176 <h3><font color=\"#008000\" size=5>function</font></h3> 176 177 177 <p> 178 178 Define specialized class <i>function</i> 179 179 </p> 180 <h 3><font color=\"#008000\">Examples</font></h3>180 <h4>Examples</h4> 181 181 182 182 <pre><b>function</b> si 183 183 <b>input</b> Real x; … … 188 188 189 189 <p align=\"center\"><img src=\"../Images/function.png\" width=\"400\" height=\"280\" alt=\"Simulation result\"></p> 190 190 191 <h 3><font color=\"#008000\">Syntax</font></h3>191 <h4>Syntax</h4> 192 192 193 193 <PRE> [ <B>encapsulated</B> ][ <B>partial </B>] <B>function</B> 194 194 IDENT class_specifier … … 200 200 201 201 <p>See Modelica Language Specification for further details.</p> 202 202 203 <h 3><font color=\"#008000\">Description</font></h3>203 <h4>Description</h4> 204 204 205 205 <P>The keyword function is used to define functions as known from programming 206 206 languages. Each part of a function interface must … … 296 296 class Model "model" 297 297 298 298 annotation (Documentation(info="<html> 299 <h3><font color=\"#008000\" size=5>model</font></h3> 299 300 300 <p> 301 301 Define specialized class <i>model</i> 302 302 </p> 303 <h 3><font color=\"#008000\">Examples</font></h3>303 <h4>Examples</h4> 304 304 305 305 <pre><b>model</b> SlidingMass 306 306 <b>parameter</b> Modelica.SIunits.Mass m=1; … … 314 314 m*a = f; 315 315 <b>end</b> SlidingMass;</pre> 316 316 317 <h 3><font color=\"#008000\">Syntax</font></h3>317 <h4>Syntax</h4> 318 318 <PRE> [ <B>encapsulated</B> ][ <B>partial </B>] <B>model</B> 319 319 IDENT class_specifier 320 320 … … 325 325 326 326 <p>See Modelica Language Specification for further details.</p> 327 327 328 <h 3><font color=\"#008000\">Description</font></h3>328 <h4>Description</h4> 329 329 <P> 330 330 The keyword model is identical to the keyword class, i.e., 331 331 no restrictions and no enhancements. … … 336 336 class Package "package" 337 337 338 338 annotation (Documentation(info="<html> 339 <h3><font color=\"#008000\" size=5>package</font></h3> 339 340 340 <p> 341 341 Define specialized class <i>package</i> 342 342 </p> 343 <h 3><font color=\"#008000\">Examples</font></h3>343 <h4>Examples</h4> 344 344 345 345 <pre><b>package</b> Library 346 346 <b>constant</b> Real k = 0.1; … … 357 357 <b>end</b> Library;</pre> 358 358 359 359 360 <h 3><font color=\"#008000\">Syntax</font></h3>360 <h4>Syntax</h4> 361 361 <PRE> [ <B>encapsulated</B> ][ <B>partial </B>] <B>package</B> 362 362 IDENT class_specifier 363 363 … … 368 368 369 369 <p>See Modelica Language Specification for further details.</p> 370 370 371 <h 3><font color=\"#008000\">Description</font></h3>371 <h4>Description</h4> 372 372 <P>May only contain declarations of classes and constants. 373 373 Enhanced to allow import of elements of packages.</P> 374 374 … … 378 378 class Record "record" 379 379 380 380 annotation (Documentation(info="<html> 381 <h3><font color=\"#008000\" size=5>record</font></h3> 381 382 382 <p> 383 383 Define specialized class <i>record</i> 384 384 </p> 385 <h 3><font color=\"#008000\">Examples</font></h3>385 <h4>Examples</h4> 386 386 387 387 <pre> <b>record</b> States 388 388 Modelica.SIunits.Position s; … … 404 404 sys.m*sys.a = sys.f; 405 405 <b>end</b> SlidingMass;</pre> 406 406 407 <h 3><font color=\"#008000\">Syntax</font></h3>407 <h4>Syntax</h4> 408 408 <PRE> [ <B>encapsulated</B> ][ <B>partial </B>] <B>record</B> 409 409 IDENT class_specifier 410 410 … … 415 415 416 416 <p>See Modelica Language Specification for further details.</p> 417 417 418 <h 3><font color=\"#008000\">Description</font></h3>418 <h4>Description</h4> 419 419 420 420 <p> 421 421 The keyword record is used to define records which are generally used in … … 435 435 class Type "type" 436 436 437 437 annotation (Documentation(info="<html> 438 <h3><font color=\"#008000\" size=5>type</font></h3> 438 439 439 <p> 440 440 Define specialized class <i>type</i> 441 441 </p> 442 <h 3><font color=\"#008000\">Examples</font></h3>442 <h4>Examples</h4> 443 443 444 444 <pre><b>type</b> R0Plus = Real(min=0);</pre> 445 445 446 <h 3><font color=\"#008000\">Syntax</font></h3>446 <h4>Syntax</h4> 447 447 <PRE> [ <B>encapsulated</B> ][ <B>partial </B>] <B>type</B> 448 448 IDENT class_specifier 449 449 … … 454 454 455 455 <p>See Modelica Language Specification for further details.</p> 456 456 457 <h 3><font color=\"#008000\">Description</font></h3>457 <h4>Description</h4> 458 458 <p>The keyword type is used to define types, which may only be extensions to the predefined types, enumerations, array of type, or classes extending from type. 459 459 Enhanced to extend from predefined types [No other specialized class has this property]. 460 460 </p> … … 476 476 class ElementaryOperators "Elementary operators (+, >, or, ..)" 477 477 478 478 annotation (Documentation(info="<html> 479 <h3><font color=\"#008000\" size=5>Elementary Operators</font></h3> 479 480 480 <p> 481 481 Elementary operators are overloaded and operate on variables 482 482 of type Real, Integer, Boolean, and String, as well as on scalars 483 483 or arrays. 484 484 </p> 485 <h 3><font color=\"#008000\">Syntax</font></h3>485 <h4>Syntax</h4> 486 486 487 487 <table border=1 cellspacing=0 cellpadding=2> 488 488 <tr><td colspan=\"3\"><b>Arithmethic Operators (operate on Real, Integer scalars or arrays)</b></td> … … 1087 1087 class Abs "abs" 1088 1088 1089 1089 annotation (Documentation(info="<html> 1090 <h3><font color=\"#008000\" size=5>abs</font></h3> 1090 1091 1091 <p> 1092 1092 Absolute value of Real or Integer variable. 1093 1093 </p> 1094 <h 3><font color=\"#008000\">Syntax</font></h3>1094 <h4>Syntax</h4> 1095 1095 <blockquote><pre><b>abs</b>(v)</pre></blockquote> 1096 <h 3><font color=\"#008000\">Description</font></h3>1096 <h4>Description</h4> 1097 1097 <P>Is expanded into "noEvent(<B>if </B>v ≥ 0 1098 1098 <B>then</B> v <B>else</B> -v)". Argument v 1099 1099 needs to be an Integer or Real expression. </P> 1100 <h 3><font color=\"#008000\">Examples</font></h3>1100 <h4>Examples</h4> 1101 1101 <pre> 1102 1102 <b>abs</b>({-3, 0, 3}) 1103 1103 = {3, 0, 3}</pre> … … 1107 1107 class Assert "assert" 1108 1108 1109 1109 annotation (Documentation(info="<html> 1110 <h3><font color=\"#008000\" size=5>assert</font></h3> 1110 1111 1111 <p> 1112 1112 Trigger error and print error message if assertion condition is not fulfilled 1113 1113 </p> 1114 <h 3><font color=\"#008000\">Syntax</font></h3>1114 <h4>Syntax</h4> 1115 1115 <blockquote><pre><b>assert</b>(condition, message, level = AssertionLevel.error)</pre></blockquote> 1116 <h 3><font color=\"#008000\">Description</font></h3>1116 <h4>Description</h4> 1117 1117 <p>The boolean expression <i>condition</i> shall be true for successful model evaluations. 1118 1118 Otherwise, an error occurs using the string expression <i>message</i> 1119 1119 as error message.</p> … … 1156 1156 <b>assert</b>(T > 200 and T < 500, \"Medium model outside feasible region\"); 1157 1157 </pre> 1158 1158 1159 <h 3><font color=\"#008000\">Examples</font></h3>1159 <h4>Examples</h4> 1160 1160 <pre> <b>parameter</b> Real upperLimit=2; 1161 1161 <b>parameter</b> Real lowerLimit=-2; 1162 1162 <b>equation</b> … … 1168 1168 class Cardinality "cardinality" 1169 1169 1170 1170 annotation (Documentation(info="<html> 1171 <h3><font color=\"#008000\" size=5>cardinality</font></h3> 1171 1172 1172 <p> 1173 1173 Number of connectors in connection. 1174 1174 This is a deprecated operator. It should no longer be used, since it will be removed in one of the next Modelica releases. 1175 1175 </p> 1176 1176 1177 <h 3><font color=\"#008000\">Syntax</font></h3>1177 <h4>Syntax</h4> 1178 1178 <blockquote><pre><b>cardinality</b>(c)</pre></blockquote> 1179 <h 3><font color=\"#008000\">Description</font></h3>1179 <h4>Description</h4> 1180 1180 <p>Returns the number of (inside and outside) occurrences 1181 1181 of connector instance c in a connect statement as an Integer number.</p> 1182 1182 <p><i>[The cardinality operator allows the definition of connection dependent equations in a model.]</i></p> … … 1187 1187 parameters. 1188 1188 </p> 1189 1189 1190 <h 3><font color=\"#008000\">Examples</font></h3>1190 <h4>Examples</h4> 1191 1191 <PRE><B>connector</B> Pin 1192 1192 Real v; 1193 1193 <B>flow</B> Real i; … … 1213 1213 class Ceil "ceil" 1214 1214 1215 1215 annotation (Documentation(info="<html> 1216 <h3><font color=\"#008000\" size=5>ceil</font></h3> 1216 1217 1217 <p> 1218 1218 Round a Real number towards plus infinity 1219 1219 </p> 1220 <h 3><font color=\"#008000\">Syntax</font></h3>1220 <h4>Syntax</h4> 1221 1221 <blockquote><pre><b>ceil</b>(x)</pre></blockquote> 1222 <h 3><font color=\"#008000\">Description</font></h3>1222 <h4>Description</h4> 1223 1223 <p>Returns the smallest integer not less than <tt>x</tt>. 1224 1224 Result and argument shall have type Real. 1225 1225 <i>[Note, outside of a when clause state events are 1226 1226 triggered when the return value changes discontinuously.]</i></p> 1227 <h 3><font color=\"#008000\">Examples</font></h3>1227 <h4>Examples</h4> 1228 1228 <pre><b>ceil</b>({-3.14, 3.14}) 1229 1229 = {-3.0, 4.0}</pre> 1230 1230 </html>")); … … 1233 1233 class Change "change" 1234 1234 1235 1235 annotation (Documentation(info="<html> 1236 <h3><font color=\"#008000\" size=5>change</font></h3> 1236 1237 1237 <p> 1238 1238 Indicate discrete variable changing 1239 1239 </p> 1240 <h 3><font color=\"#008000\">Syntax</font></h3>1240 <h4>Syntax</h4> 1241 1241 <blockquote><pre><b>change</b>(v)</pre></blockquote> 1242 <h 3><font color=\"#008000\">Description</font></h3>1242 <h4>Description</h4> 1243 1243 <P>Is expanded into "(v<>pre(v))". 1244 1244 The same restrictions as for the pre() operator apply.</P> 1245 <h 3><font color=\"#008000\">Examples</font></h3>1245 <h4>Examples</h4> 1246 1246 <pre><b>model</b> BothEdges 1247 1247 Boolean u; 1248 1248 Integer i; … … 1259 1259 class Cos "cos" 1260 1260 1261 1261 annotation (Documentation(info="<html> 1262 <h3><font color=\"#008000\" size=5>cos</font></h3> 1262 1263 1263 <p> 1264 1264 Trigonometric cosine function 1265 1265 </p> 1266 <h 3><font color=\"#008000\">Syntax</font></h3>1266 <h4>Syntax</h4> 1267 1267 <blockquote><pre><b>cos</b>(v)</pre></blockquote> 1268 <h 3><font color=\"#008000\">Description</font></h3>1268 <h4>Description</h4> 1269 1269 <p>Returns the cosine of v. 1270 1270 Argument v needs to be an Integer or Real expression.</p> 1271 <h 3><font color=\"#008000\">Examples</font></h3>1271 <h4>Examples</h4> 1272 1272 <pre><b>cos</b>(3.14159265358979) 1273 1273 = -1.0</pre> 1274 1274 </html>")); … … 1276 1276 1277 1277 class Cross "cross" 1278 1278 annotation (Documentation(info="<html> 1279 <h3><font color=\"#008000\" size=5>cross</font></h3> 1279 1280 1280 <p> 1281 1281 Return cross product of two vectors 1282 1282 </p> 1283 <h 3><font color=\"#008000\">Syntax</font></h3>1283 <h4>Syntax</h4> 1284 1284 <blockquote><pre><b>cross</b>(x, y)</pre></blockquote> 1285 <h 3><font color=\"#008000\">Description</font></h3>1285 <h4>Description</h4> 1286 1286 <p> 1287 1287 Returns the cross product of the 3-vectors x and y, i.e. 1288 1288 </p> … … 1297 1297 class Delay "delay" 1298 1298 1299 1299 annotation (Documentation(info="<html> 1300 <h3><font color=\"#008000\" size=5>delay</font></h3> 1300 1301 1301 <p> 1302 1302 Delay expression 1303 1303 </p> 1304 <h 3><font color=\"#008000\">Syntax</font></h3>1304 <h4>Syntax</h4> 1305 1305 <blockquote><pre><b>delay</b>(expr, delayTime, delayMax) 1306 1306 <b>delay</b>(expr, delayTime)</pre></blockquote> 1307 <h 3><font color=\"#008000\">Description</font></h3>1307 <h4>Description</h4> 1308 1308 <P>Returns <TT>\"expr(time - delayTime)\"</TT> for <TT>time > time.start + delayTime</TT> 1309 1309 and <TT>\"expr(time.start)\"</TT> for <TT>time ≤ time.start + delayTime</TT>. The 1310 1310 arguments, i.e., <tt>expr</tt>, <tt>delayTime</tt> and <tt>delayMax</tt>, need to be subtypes of Real. … … 1329 1329 to be give as additional argument to be fixed at compile time. Furthermore, 1330 1330 the maximum step size of the integrator is limited by this minimum delay 1331 1331 time in order to avoid extrapolation in the delay buffer.]</i></p> 1332 <h 3><font color=\"#008000\">Examples</font></h3>1332 <h4>Examples</h4> 1333 1333 <pre><b>model</b> Delay 1334 1334 Real x; 1335 1335 Real y; … … 1344 1344 class Der "der" 1345 1345 1346 1346 annotation (Documentation(info="<html> 1347 <h3><font color=\"#008000\" size=5>der</font></h3> 1347 1348 1348 <p> 1349 1349 Time derivative of expression 1350 1350 </p> 1351 <h 3><font color=\"#008000\">Syntax</font></h3>1351 <h4>Syntax</h4> 1352 1352 <blockquote><pre><b>der</b>(expr)</pre></blockquote> 1353 <h 3><font color=\"#008000\">Description</font></h3>1353 <h4>Description</h4> 1354 1354 <P>The time derivative of expression expr. 1355 1355 If the expression expr is a scalar it needs to be a subtype of Real. The expression and all its subexpressions must be differentiable. If expr is an array, the operator is applied to all elements of the array. For Real parameters and 1356 1356 constants the result is a zero scalar or array of the same size as the 1357 1357 variable.</P> 1358 <h 3><font color=\"#008000\">Examples</font></h3>1358 <h4>Examples</h4> 1359 1359 <pre> Real x, xdot1, xdot2; 1360 1360 <b>equation</b> 1361 1361 xdot1 = <b>der</b>(x); … … 1366 1366 1367 1367 class Diagonal "diagonal" 1368 1368 annotation (Documentation(info="<html> 1369 <h3><font color=\"#008000\" size=5>diagonal</font></h3> 1369 1370 1370 <p> 1371 1371 Returns a diagonal matrix 1372 1372 </p> 1373 <h 3><font color=\"#008000\">Syntax</font></h3>1373 <h4>Syntax</h4> 1374 1374 <blockquote><pre><b>diagonal</b>(v)</pre></blockquote> 1375 <h 3><font color=\"#008000\">Description</font></h3>1375 <h4>Description</h4> 1376 1376 <p> 1377 1377 Returns a square matrix with the elements of vector v 1378 1378 on the diagonal and all other elements zero. … … 1383 1383 class Div "div" 1384 1384 1385 1385 annotation (Documentation(info="<html> 1386 <h3><font color=\"#008000\" size=5>div</font></h3> 1386 1387 1387 <p> 1388 1388 Integer part of division of two Real numbers 1389 1389 </p> 1390 <h 3><font color=\"#008000\">Syntax</font></h3>1390 <h4>Syntax</h4> 1391 1391 <blockquote><pre><b>div</b>(x, y)</pre></blockquote> 1392 <h 3><font color=\"#008000\">Description</font></h3>1392 <h4>Description</h4> 1393 1393 <P>Returns the algebraic quotient <TT>x/y</TT> with any 1394 1394 fractional part discarded (also known as truncation 1395 1395 toward zero). <I>[Note: this is defined for / in C99; … … 1402 1402 <p><i>[Note, outside of a when clause state events are triggered 1403 1403 when the return value changes discontinuously.]</i></p> 1404 1404 1405 <h 3><font color=\"#008000\">Examples</font></h3>1405 <h4>Examples</h4> 1406 1406 <pre><b>div</b>(13,6) 1407 1407 = 2</pre> 1408 1408 </html>")); … … 1411 1411 class Edge "edge" 1412 1412 1413 1413 annotation (Documentation(info="<html> 1414 <h3><font color=\"#008000\" size=5>edge</font></h3> 1414 1415 1415 <p> 1416 1416 Indicate rising edge 1417 1417 </p> 1418 <h 3><font color=\"#008000\">Syntax</font></h3>1418 <h4>Syntax</h4> 1419 1419 <blockquote><pre><b>edge</b>(b)</pre></blockquote> 1420 <h 3><font color=\"#008000\">Description</font></h3>1420 <h4>Description</h4> 1421 1421 <P>Is expanded into "(b <B>and not pre</B>(b))" 1422 1422 for Boolean variable b. The same restrictions as for the 1423 1423 <B>pre</B> operator apply (e.g. not to be used in function 1424 1424 classes).</P> 1425 <h 3><font color=\"#008000\">Examples</font></h3>1425 <h4>Examples</h4> 1426 1426 <pre><b>model</b> RisingEdge 1427 1427 Boolean u; 1428 1428 Integer i; … … 1438 1438 1439 1439 class Fill "fill" 1440 1440 annotation (Documentation(info="<html> 1441 <h3><font color=\"#008000\" size=5>fill</font></h3> 1441 1442 1442 <p> 1443 1443 Return a Real, Integer, Boolean or String array with all elements equal 1444 1444 </p> 1445 <h 3><font color=\"#008000\">Syntax</font></h3>1445 <h4>Syntax</h4> 1446 1446 <blockquote><pre><b>fill</b>(s, n1, n2, n3, ...)</pre></blockquote> 1447 <h 3><font color=\"#008000\">Description</font></h3>1447 <h4>Description</h4> 1448 1448 <p> 1449 1449 Returns the n1 x n2 x n3 x ... array with all elements equal 1450 1450 to scalar or array expression s (ni >= 0). The returned … … 1454 1454 fill(s,n1,n2,n3, ...) = fill(fill(s,n2,n3, ...), n1); 1455 1455 fill(s,n) = {s,s,..., s} 1456 1456 </pre></blockquote> 1457 <h 3><font color=\"#008000\">Examples</font></h3>1457 <h4>Examples</h4> 1458 1458 <blockquote><pre> 1459 1459 Real mr[2,2] = fill(-1,2,2); // = [-1,-1;-1,-1] 1460 1460 Boolean vb[3] = fill(true,3); // = {true, true, true} … … 1465 1465 class Floor "floor" 1466 1466 1467 1467 annotation (Documentation(info="<html> 1468 <h3><font color=\"#008000\" size=5>floor</font></h3> 1468 1469 1469 <p> 1470 1470 Round Real number towards minus infinity 1471 1471 </p> 1472 <h 3><font color=\"#008000\">Syntax</font></h3>1472 <h4>Syntax</h4> 1473 1473 <blockquote><pre><b>floor</b>(x)</pre></blockquote> 1474 <h 3><font color=\"#008000\">Description</font></h3>1474 <h4>Description</h4> 1475 1475 <p>Returns the largest integer not greater than <tt>x</tt>. 1476 1476 Result and argument shall have type Real. <i>[Note, outside 1477 1477 of a when clause state events are triggered when the return 1478 1478 value changes discontinuously.]</i></p> 1479 <h 3><font color=\"#008000\">Examples</font></h3>1479 <h4>Examples</h4> 1480 1480 <pre><b>floor</b>({-3.14, 3.14}) 1481 1481 = {-4.0, 3.0}</pre> 1482 1482 </html>")); … … 1484 1484 1485 1485 class Identity "identity" 1486 1486 annotation (Documentation(info="<html> 1487 <h3><font color=\"#008000\" size=5>identity</font></h3> 1487 1488 1488 <p> 1489 1489 Returns the identity matrix of the desired size 1490 1490 </p> 1491 <h 3><font color=\"#008000\">Syntax</font></h3>1491 <h4>Syntax</h4> 1492 1492 <blockquote><pre><b>identity</b>(n)</pre></blockquote> 1493 <h 3><font color=\"#008000\">Description</font></h3>1493 <h4>Description</h4> 1494 1494 <p> 1495 1495 Returns the n x n Integer identity matrix, with ones 1496 1496 on the diagonal and zeros at the other places. … … 1501 1501 class Initial "initial" 1502 1502 1503 1503 annotation (Documentation(info="<html> 1504 <h3><font color=\"#008000\" size=5>initial</font></h3> 1504 1505 1505 <p> 1506 1506 True during initialization 1507 1507 </p> 1508 <h 3><font color=\"#008000\">Syntax</font></h3>1508 <h4>Syntax</h4> 1509 1509 <blockquote><pre><b>initial</b>()</pre></blockquote> 1510 <h 3><font color=\"#008000\">Description</font></h3>1510 <h4>Description</h4> 1511 1511 <p>Returns <b>true</b> during the initialization phase and <b>false</b> otherwise.</p> 1512 <h 3><font color=\"#008000\">Examples</font></h3>1512 <h4>Examples</h4> 1513 1513 <pre> Boolean off; 1514 1514 Real x; 1515 1515 <b>equation</b> … … 1520 1520 class IntegerUpperCase "Integer" 1521 1521 1522 1522 annotation (Documentation(info="<html> 1523 <h3><font color=\"#008000\" size=5>integer</font></h3> 1523 1524 1524 <p> 1525 1525 Returns ordinal number of enumeration 1526 1526 </p> 1527 <h 3><font color=\"#008000\">Syntax</font></h3>1527 <h4>Syntax</h4> 1528 1528 <blockquote><pre><b>Integer</b>(E.e1)</pre></blockquote> 1529 <h 3><font color=\"#008000\">Description</font></h3>1529 <h4>Description</h4>
