Description Details Author(s) References See Also Examples
This package provides a lot of useful functions for electronics-related applications.
Package: | electronics |
Type: | Package |
Version: | 1.0 |
Date: | 2014-01-11 |
License: | MIT License |
~~ An overview of how to use the package, including the most important functions ~~
Maintainer: Nathan Campos <nathanpc@dreamintech.net>
~~ Literature or other references for background information ~~
~~ Optional links to other man pages, e.g. ~~
~~ <pkg>
~~
1 2 3 4 5 6 7 8 9 10 11 | # Ohm's law.
ohms_law(v = 12, r = 1) # Current for 12V across a 1 ohm resistor.
ohms_law(v = 5, i = 0.1) # Resistance for 5V at 100mA.
# Power.
power(v = 12, r = 10) # Power dissipated by a 10 ohm resistor at 12V
# RC filters.
filter.rc(10000, 0.0001) # Cutoff frequency of a filter with a 10k ohms resistor and a 100uF capacitor.
filter.rc.r(1000, 0.0001) # Resistor for a 1kHz filter with a 100uF capacitor.
filter.rc.r(1000, 10000) # Capacitor for a 1kHz filter with a 10k ohms resistor.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.