<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<!--
Copyright (c) 2006 UGS Corp.

All Rights Reserved.

This software and related documentation are proprietary to UGS Corp.
-->
<html>
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Example 9</title>
      <script language="javaScript">
        abridged="false";
        displayConditions=new Array();
      </script>
      <link type="text/css" href="../css/main_styles.css" rel="stylesheet">
   </head>
   <body class="bodydocs" onload="top.pageLoader()" bgcolor="#FFFFFF">
      <div class="title_topic4" id="xps10_pagetitle"> Example 9</div>
      <hr noshade="true">
      <p class="para_topic"> This illustrates the case where explicitly defining the dimensionality of a system-generated expression leads to confusion. The unit conversion program expands  <em>p3=in(p1 + p2)</em> to  <em>p3=in(in(5.0) *in(10.0)) </em>and the dimensionality balance check fails.
      </p>
      <p class="para_topic"> List of expressions in part:</p><pre class="indent"> p1 = 5.0 p2 = 10 p3 = in(p1 + p2)</pre><p class="para_topic"> List of converted expressions (after running ug_convert_part):</p><pre class="indent"> p1 = 127.0 // dim 1 p2 = 254.0 // dim 1 p3 = 381.0 // in(p1 + p2) // VALUE ONLY // dim 1</pre><p class="para_topic"> Information written to syslog:</p><pre class="indent"> The following expression strings were not converted: p3 = in(p1 + p2) Unbalanced dimensionality</pre></body>
</html>