User-Defined Units

You can assign your own units to a series. Again, keep in mind that DADiSP can more reliably determine the proper unit for complex results with internally-defined units than with user-defined units. During series operations, the horizontal (time axis) units are maintained if the horizontal units of the operands are the same. If the horizontal units are not the same¾for example, Seconds for W1 and UNKNOWN for W2¾then the resulting horizontal units are UNKNOWN for all cases involving W1 and W2.

 

Calculus operations change the y-axis units. In general, the DERIV functions yield y-axis units that are the original y-axis units divided by the original x-axis units. The INTEG function yields units of the original y-axis units multiplied by the original x-axis units.

 

DADiSP understands fundamental relationships between units: if you multiply Amps by Voltage, for instance, the resulting units will be Watts (Power).

 

Use the DEFUNITS function to define a new unit in terms of other fundamental units. For example.

 

defunits("Webers", "V*s", "Wb")

 

defines a new unit Weber with the abbreviation of Wb. Any series with units of V*s will be reduced to Webers.

 

W1: 1..100;setvunits("V")

W2: integ(w1)

getvunits(w2)

 

GETVUNITS now returns Webers.