<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Usage</title><link>https://sourceforge.net/p/resparser/wiki/Usage/</link><description>Recent changes to Usage</description><atom:link href="https://sourceforge.net/p/resparser/wiki/Usage/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 27 Oct 2013 09:24:47 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/resparser/wiki/Usage/feed" rel="self" type="application/rss+xml"/><item><title>Usage modified by Gianluigi Forte</title><link>https://sourceforge.net/p/resparser/wiki/Usage/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="basic-usage"&gt;Basic Usage&lt;/h1&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Available inputs&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Expression&lt;/li&gt;
&lt;li&gt;Assignment&lt;/li&gt;
&lt;li&gt;Command&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="expression"&gt;Expression&lt;/h2&gt;
&lt;p&gt;Any arithmetic operation can be insert as input and it is immediately computed.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;45*(12+6)&lt;br /&gt;
&lt;strong&gt;ans=810&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Beyond the four operator + - * / that can be used for the operation it is possible to use:&lt;/p&gt;
&lt;p&gt;^ operator to calculate powers&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;2^16&lt;br /&gt;
&lt;strong&gt;ans=65536&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;: operator to calculate parallel (between two resistors value)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;10k:2k&lt;br /&gt;
&lt;strong&gt;ans=1666.6666666666666667&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It is possible to use k for kilo and M for mega.&lt;/p&gt;
&lt;p&gt;The result of the operation has showed in the output panel and it is assigned automatically to the variable &lt;em&gt;ans&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;1+1*2&lt;br /&gt;
&lt;strong&gt;ans=4&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Operator +  has the priority respect * operator but is possible to change the priority with the round parenthesis.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;1+(1*2)&lt;br /&gt;
&lt;strong&gt;ans=3&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;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-&amp;gt;Built-if function or the accelerator Ctrl+Shift+F.&lt;br /&gt;
Is possible to use a built-in function with the syntax:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;function_name(arg,[arg])&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Each arg can be an expression themselves.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;sin(2*3.14*90)&lt;br /&gt;
&lt;strong&gt;ans=-0.2827670275709750325&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;A user-defined function can be used in a expression in the same way. (See user-defined functions)&lt;/p&gt;
&lt;p&gt;Variables can be used in a expression. (See variables)&lt;/p&gt;
&lt;h2 id="assignment"&gt;Assignment&lt;/h2&gt;
&lt;p&gt;An assignment can be performed with the following expressions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Variable assignment&lt;/em&gt;: &lt;strong&gt;var_name = expression&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;temp = 10*3&lt;br /&gt;
&lt;strong&gt;ans=30&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;User-defined function assignment&lt;/em&gt;: &lt;strong&gt;func_name(arg,[arg]) = expression&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;f(x)=abs(1/x)&lt;br /&gt;
&lt;strong&gt;nan&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note:&lt;/strong&gt; nan means not a number and in this case is the defualt response to an user-define function assignment.&lt;/p&gt;
&lt;h2 id="commands"&gt;Commands&lt;/h2&gt;
&lt;p&gt;In the following list are shown the command accepted by the parser:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;list&lt;/strong&gt; or &lt;strong&gt;ls&lt;/strong&gt;: Shows variables list.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;clear&lt;/strong&gt;:  delete all variables.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;clear var_name&lt;/strong&gt;: delete only var_name variable.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;clear func_name&lt;/strong&gt;: delete only func_name function from the user-define functions.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;clearraw funct_name&lt;/strong&gt;: delete RAW data of the specified func_name (it must be a user-define function).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;plot&lt;/strong&gt; or &lt;strong&gt;draw&lt;/strong&gt; func_name&lt;span&gt;[range]&lt;/span&gt;: create and shows the graph of func_name function (it must be a mono-dimensional user-define function.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;E12&lt;/strong&gt;: show all E12 resistor values.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;E24&lt;/strong&gt;: show all E24 resistor values.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;expression-&amp;gt;E12&lt;/strong&gt;: rounds expression to nearest E12 resistor values.&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gianluigi Forte</dc:creator><pubDate>Sun, 27 Oct 2013 09:24:47 -0000</pubDate><guid>https://sourceforge.netf350e45569dcd856853a52a8a3de407a222a491f</guid></item></channel></rss>