Giter VIP home page Giter VIP logo

guile-e-series's Introduction

  --------------------------------
    E-Series Tools for GNU Guile
  --------------------------------

The E-Series are series of preferred numbers, commonly used to specify electro-
nic parts; mostly resistors, inductors  and capacitors. This library implements
two kinds of lookups: a) Given a value,  look up that value in all E-series and
return the values  surrounding the desired value; and b)  Given an integer that
identifies an E-Series  and a desired value, return combinations  of two parts,
that approximate the desired value as closely as possible.

For ease of use, the library impements the (e-series) module, that implements a
set of frontends (‘resistor’, ‘inductor’ and ‘capacitor’), that can all be used
in precisely the two ways described above. Examples:

(capacitor #e910e-6)
 ---------+--------------------------+-------------+--------------------------
  Series  |           Below (Error)  |      Exact  |           Above (Error)
 ---------+--------------------------+-------------+--------------------------
    E3    |  470.000µF  (-4.835E-1)  |             |  1.00000mF  (+9.890E-2)
    E6    |  680.000µF  (-2.527E-1)  |             |  1.00000mF  (+9.890E-2)
    E12   |  820.000µF  (-9.890E-2)  |             |  1.00000mF  (+9.890E-2)
    E24   |  820.000µF  (-9.890E-2)  |  910.000µF  |  1.00000mF  (+9.890E-2)
    E48   |  909.000µF  (-1.099E-3)  |             |  953.000µF  (+4.725E-2)
    E96   |  909.000µF  (-1.099E-3)  |             |  931.000µF  (+2.308E-2)
    E192  |  909.000µF  (-1.099E-3)  |             |  920.000µF  (+1.099E-2)
 ---------+--------------------------+-------------+--------------------------

(capacitor 12 #e910e-6)
 ------------+-------------------------+-------------+-------------+-----------
    Desired  |         Actual (Error)  |     Part A  |     Part B  |  Circuit
 ------------+-------------------------+-------------+-------------+-----------
  910.000µF  |  909.091µF (-9.990E-4)  |  1.00000mF  |  10.0000mF  |  series
  910.000µF  |  917.647µF (+8.403E-3)  |  1.20000mF  |  3.90000mF  |  series
  910.000µF  |  902.000µF (-8.791E-3)  |  820.000µF  |  82.0000µF  |  parallel
 ------------+-------------------------+-------------+-------------+-----------

To run  the test-suite of the  library, the following additional  dependency is
required:   https://gitlab.com/ft/guile-tap

guile-e-series's People

Contributors

ft avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.