Menu

Usage

Gianluigi Forte

Basic Usage

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

  • Expression
  • Assignment
  • Command

Expression

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)

Assignment

An assignment can be performed with the following expressions:

  • Variable assignment: var_name = expression

temp = 10*3
ans=30

  • User-defined function assignment: func_name(arg,[arg]) = expression

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.

Commands

In the following list are shown the command accepted by the parser:

  • list or ls: Shows variables list.
  • clear: delete all variables.
  • clear var_name: delete only var_name variable.
  • clear func_name: delete only func_name function from the user-define functions.
  • clearraw funct_name: delete RAW data of the specified func_name (it must be a user-define function).
  • plot or draw func_name[range]: create and shows the graph of func_name function (it must be a mono-dimensional user-define function.
  • E12: show all E12 resistor values.
  • E24: show all E24 resistor values.
  • expression->E12: rounds expression to nearest E12 resistor values.

Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.