WMS:Customizing Equations: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Any of the equations can be edited (i.e. you can pick an equation and then  modify it slightly to meet your needs) or your own equation created using the '''Modify Equation''' or '''User Defined''' buttons. Both of these buttons bring up the ''Modify Equation'' dialog shown  below.
Any of the equations can be edited (i.e. pick an equation and then  modify it slightly to a particular need) or created using the '''Modify Equation''' or '''User Defined''' buttons. Both of these buttons bring up the ''Modify Equation'' dialog shown  below.


[[Image:image278.jpg|thumb|none|left|350 px]]
[[Image:ModifyEquations.jpg|thumb|none|left|350 px|''Modify Equation'' dialog.]]


If you enter this dialog using the '''Modify Equation''' button the currently selected equation will appear in the Equation edit box. If  the current equation has more than one equation (some equations have separate  equations for lag time/time of concentration and peaking or storage  coefficients) then you will be asked to choose which equation you want to  modify. If you use the '''User Defined''' button to enter this  dialog then the ''Equation edit'' box will be blank. You can type a new equation or  modify an existing equation from the keyboard or by using the buttons for add,  subtract, multiply, divide, etc. You may also enter variable names corresponding  to the basin data computed by WMS, or enter variables that you wish to define yourself. The variable definition is displayed and edited in the Definition edit  box and units associated with the variable can be set using the Units drop-down  combo box.
If entering this dialog using the '''Modify Equation''' button, the currently selected equation will appear in the ''Equation'' edit box. If  the current equation has more than one equation (some equations have separate  equations for lag time/time of concentration and peaking or storage  coefficients) then WMS will ask to choose which equation to  modify. If using the '''User Defined''' button to enter this  dialog then the ''Equation edit'' box will be blank. Type a new equation or  modify an existing equation from the keyboard or by using the buttons for add,  subtract, multiply, divide, etc. Also enter variable names corresponding  to the basin data computed by WMS, or enter variables that to define. The variable definition is displayed and edited in the Definition edit  box and units associated with the variable can be set using the Units drop-down  combo box.


When you have finished typing the equation you should select the '''Parse''' button. Doing so will result in any variables being  identified and displayed in the Variables text window along with their  definitions. The rules of precedence are typical for mathematical computations  (order of operations) and are as follows:
When finished typing the equation, select the '''Parse''' button. Doing so will result in any variables being  identified and displayed in the Variables text window along with their  definitions. The rules of precedence are typical for mathematical computations  (order of operations) and are as follows:


#Parenthetical statements
#Parenthetical statements
Line 23: Line 23:


{{WMSMain}}
{{WMSMain}}
[[Category:Equations|C]]
[[Category:Equations|Customizing]]
[[Category:WMS Dialogs]]

Latest revision as of 18:41, 5 December 2016

Any of the equations can be edited (i.e. pick an equation and then modify it slightly to a particular need) or created using the Modify Equation or User Defined buttons. Both of these buttons bring up the Modify Equation dialog shown below.

Modify Equation dialog.

If entering this dialog using the Modify Equation button, the currently selected equation will appear in the Equation edit box. If the current equation has more than one equation (some equations have separate equations for lag time/time of concentration and peaking or storage coefficients) then WMS will ask to choose which equation to modify. If using the User Defined button to enter this dialog then the Equation edit box will be blank. Type a new equation or modify an existing equation from the keyboard or by using the buttons for add, subtract, multiply, divide, etc. Also enter variable names corresponding to the basin data computed by WMS, or enter variables that to define. The variable definition is displayed and edited in the Definition edit box and units associated with the variable can be set using the Units drop-down combo box.

When finished typing the equation, select the Parse button. Doing so will result in any variables being identified and displayed in the Variables text window along with their definitions. The rules of precedence are typical for mathematical computations (order of operations) and are as follows:

  1. Parenthetical statements
  2. Functions like ln, log, etc.
  3. The power function (^)
  4. Multiply and divide
  5. Add and subtract
  6. Left to right


Related Topics