efind
electronic component selection utility
Loading...
Searching...
No Matches
efind.py File Reference

Go to the source code of this file.

Classes

class  efind.CalculateCall
 A callable with any number of floating-point arguments, returning a float. More...
 
class  efind.ComponentValue
 A value associated with a component - to track approximated values. More...
 
class  efind.Component
 A component, without knowledge of its value - only bounds and defining formula. More...
 
class  efind.Resistor
 
class  efind.Capacitor
 
class  efind.Output
 A calculated parameter - potentially but not necessarily a circuit output - to be calculated and checked for error in the solution ranking process. More...
 
class  efind.Solver
 Basic recursive solver class that does a brute-force search through some component values. More...
 

Namespaces

namespace  efind
 Do a quick, sequential, numerical (not symbolic) exploration of some electronic component values to propose solutions that use standard, inexpensive parts.
 

Functions

int efind.bisect_lower (Sequence[float] a, float x)
 Run bisect, but use one index before the return value of bisect_left More...
 
tuple[Optional[int], float] efind.approximate (float x, Sequence[float] series)
 Approximate a value by using the given series. More...
 
str efind.fmt_eng (float x, str unit, int sig=2)
 Format a number in engineering (SI) notation. More...
 

Variables

tuple efind.E3 = (1.0, 2.2, 4.7)
 
tuple efind.E6 = (1.0, 1.5, 2.2, 3.3, 4.7, 6.8)
 
tuple efind.E12 = (1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2)
 
tuple efind.E24
 
tuple efind.E48
 
tuple efind.E96