By Scheffer Solutions INFO
[Search for similar]
How do I use Expression Parser?
Using the Expression Parser is just as simple as using any normal calculator. If you know the expression you want to evaluate just type it into the expression line. Or you can use the dropdowns to help you figure out what prefix, symbol or method to use.
For example, if you wanted to evaluate which measurement was bigger you may want to use the MAX() method. The expression MAX(3ft,1m) will return 1m if metric base system is selected or 3.280839... ft (which is really 1m just converted into international feet) if imperial is chosen. You can also use the return value to be entered into a more complex expression such as MAX(3ft,1m)+3in. Or just return a boolean value like MAX(3ft,1m)==1m. This results to TRUE. Yet if using the same expression above without units of measure the result would be completely different. MAX(3,1) would return 3 as would be expected.
Adding a unit of measure to a number allows it to become "smart". Although you don’t need to add units of measure to anything, they just allow the parsing engine to recognize the importance of 1m when comparing it against 3ft.
What can I do with units of measure?
Units of measure are treated algebraically just as you would treat them if doing the calculations by hand. Units of measure follow the same rules and properties that numbers do. They can be multiplied, divided, added, subtracted or cancelled out. But the units don’t have to be the same unit to cancel out. However, they have to of the same type or category. For example, ft/m gives 0.3048 as a result. Notice there is no unit of measure associated with the result. That is because they have been cancelled out.
Another example to further illustrate the point but this time lets use the expression ft^2/m results in .09290304m. Notice again that this time we have a unit of measure in our result.
How do I get the result into another unit of measure?
I’ve taken care to accurately represent results to their proper units depending on their category. However, sometimes you may want to represent the result in a different way. The easiest way to do so is to use the ’@’ symbol. This tells the parser to convert the unit of measure immediately following the symbol. For example, 1N returns 1(m*kg)/s^2 but what if you wanted (m*g)/s^2? Just type 1N@(m*g)/s^2 this gives 1000. What about the units of measure? The parser currently assumes that since you told it to give you the result in a user defined units of measure you already know what that unit of measure is. Rest assured this is the correct result for the given unit of measure stated.
Download a trial version here: ExpressionParser_v6.0setup.exe
Microsoft .NET 2.0 (install detected)