resParser main window is structured with one input field on the bottom to insert the user commands and the output panel in the top to see the result of the operation.
Available inputs
Any arithmetic operation can be insert as input and it is immediately computed.
45*(12+6)
ans=810
Beyond the four operator + - * / that can be used for the operation it is possible to use:
^ operator to calculate powers
2^16
ans=65536
: operator to calculate parallel (between two resistors value)
10k:2k
ans=1666.6666666666666667
It is possible to use k for kilo and M for mega.
The result of the operation has showed in the output panel and it is assigned automatically to the variable ans.
The operators has their precedence in the operator but is possible to use the round parenthesis to change the precedence of the operation in a complex expression.
1+1*2
ans=4
Operator + has the priority respect * operator but is possible to change the priority with the round parenthesis.
1+(1*2)
ans=3
A set of built-in trigonometric and transcendent functions are available for the user. The list of built-in functions available can be shown clicking view->Built-if function or the accelerator Ctrl+Shift+F.
Is possible to use a built-in function with the syntax:
function_name(arg,[arg])
Each arg can be an expression themselves.
sin(2*3.14*90)
ans=-0.2827670275709750325
A user-defined function can be used in a expression in the same way. (See user-defined functions)
Variables can be used in a expression. (See variables)
An assignment can be performed with the following expressions:
temp = 10*3
ans=30
f(x)=abs(1/x)
nan
Note: nan means not a number and in this case is the defualt response to an user-define function assignment.
In the following list are shown the command accepted by the parser: