![]() ![]() You can convert voltages into dBm using: 0: 10 vdbm You can also display numbers in hexadecimal, octal, or binary in both Programmers notation or in Verilog notation. You can enter hexadecimal, octal, or binary numbers, in either traditional Normally units are given after the number, however a dollar sign would be given Interprets the contents of the string as units and applies them to whatever is You can overcome this limitation by entering a quoted string. You can only add units to number literals. Digits and special characters like /, ^, *, -, ( or ) are not Units added to the end of a number may consist only of letters and The underscore isĪ scale factor, like m or k. If you want to specify one meter, you would use 1_m. In this way, 1m represents 1e-3 rather than one You can only add units after a scale factor, but once you’ve given the scaleįactor the units are optional. This simple way of adding units to a number, ex. Finally, notice that dividing by 2pi cleared the units. Notice that EC captured units on 100MHz and stored them into the memory freq.Īlso notice that the units of “rads/s” were explicitly specified, and they wereĪlso captured. In this way it should never display incorrect or misleading units, however You can enter themĪnd it remembers them, but they do not survive any operation other than aĬopy. The support for units is relatively conservative. It is used in dBm calculations.įrom the above example you can see that EC supports SI scale factors and units. Rref is a special variable that is set by default to 50 Ohms, but you canĬhange its value. Recall it, simply use the name: 0: 100MHz =freq To store a value into a variable, type an equal sign followed by a name. You remove a value from the bottom of the stack with pop: 0: 10 -3 stack The command name ytox is short for ‘raise value of y register to the value That are generally involved in operations and they are labeled x and y as anĪid to help you understand and predict the basic operation of various commands. ![]() Use stack to see the contents of the stack: 0: 1 2 3 4 5 stack Select operators can be entered without preceding them with a space if theyįollow a number or a name. The value of two parallel 100 ohm resistors): 0: 100Įffectively, you only need to type enter is when you want to see the result. Stack while the sum of 6 and 7 is computed, and finally it is used, andĪlternately, you can string a calculation over multiple lines (this calculates It firstĬomputes the sum and places the results on the stack. This command demonstrates the power of using a stack for calculations. You can string together an arbitrarily long calculation on a single line: 0: 4 5 + 6 7 + * X-register, which is generally the final result from the previous command. This command first pushes 4 onto the stack, then it pushes 5 on the stack, andįinally runs the addition operator, which pulls 4 and 5 off the stack and then Any intermediate results are stored on the stack until The operations are performed immediately and there is no use of parentheses to Operators then take numbers from the stack and replace them with the result. In particular, as you enter the numbers they are pushed onto the stack. To perform operations in EC, you first enter the numbers, then the operators. Once installed, you can get access the man page using: man ec A Brief Tour of Engineering Calculator Otherwise, you can install the latest version of the manpage on GitHub using: curl | bash. If you have installed from source, you can install the manpage with: cd doc To install: $ python setup.py install -user Once cloned, you can get the latest updates using: $ cd ec More information on both ec can be found on ReadTheDocs. Supports man pages, however you can download it from GitHub. This installs ec into ~/.local/bin, which should be added to your path. Install with: pip3 install -user engineering-calculator ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |