electronics-engineering-ai999x 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- electronics_engineering_ai999x/__init__.py +47 -0
- electronics_engineering_ai999x/_capabilities.py +1356 -0
- electronics_engineering_ai999x/_engine/__init__.py +14 -0
- electronics_engineering_ai999x/_engine/_lazy.py +49 -0
- electronics_engineering_ai999x/_engine/answer.py +184 -0
- electronics_engineering_ai999x/_engine/compiler.py +547 -0
- electronics_engineering_ai999x/_engine/decision_reader.py +233 -0
- electronics_engineering_ai999x/_engine/derivations.py +166 -0
- electronics_engineering_ai999x/_engine/engine.py +250 -0
- electronics_engineering_ai999x/_engine/explain.py +157 -0
- electronics_engineering_ai999x/_engine/explanations.py +143 -0
- electronics_engineering_ai999x/_engine/expr.py +251 -0
- electronics_engineering_ai999x/_engine/formula_solver.py +302 -0
- electronics_engineering_ai999x/_engine/identity.py +42 -0
- electronics_engineering_ai999x/_engine/inputs.py +160 -0
- electronics_engineering_ai999x/_engine/knowledge_store.py +269 -0
- electronics_engineering_ai999x/_engine/pack.py +200 -0
- electronics_engineering_ai999x/_engine/planner.py +180 -0
- electronics_engineering_ai999x/_engine/policy.py +87 -0
- electronics_engineering_ai999x/_engine/precision.py +108 -0
- electronics_engineering_ai999x/_engine/proc_reader.py +443 -0
- electronics_engineering_ai999x/_engine/procedure_spec.py +283 -0
- electronics_engineering_ai999x/_engine/product.py +973 -0
- electronics_engineering_ai999x/_engine/quantity.py +255 -0
- electronics_engineering_ai999x/_engine/relation.py +190 -0
- electronics_engineering_ai999x/_engine/retrieval.py +61 -0
- electronics_engineering_ai999x/_engine/search.py +75 -0
- electronics_engineering_ai999x/_engine/slot_reader.py +109 -0
- electronics_engineering_ai999x/_engine/student_gate.py +228 -0
- electronics_engineering_ai999x/_engine/systems/__init__.py +33 -0
- electronics_engineering_ai999x/_engine/systems/reader.py +248 -0
- electronics_engineering_ai999x/_engine/systems/solver.py +284 -0
- electronics_engineering_ai999x/_engine/visual.py +161 -0
- electronics_engineering_ai999x/cli.py +29 -0
- electronics_engineering_ai999x/pack/MANIFEST.json +50 -0
- electronics_engineering_ai999x/pack/capabilities/procedures.py +4466 -0
- electronics_engineering_ai999x/pack/capabilities/procedures_certified.json +149 -0
- electronics_engineering_ai999x/pack/dictionary/kinds.json +207 -0
- electronics_engineering_ai999x/pack/dictionary/terms.json +3870 -0
- electronics_engineering_ai999x/pack/electronics_engineering_knowledge_public.sqlite +0 -0
- electronics_engineering_ai999x/pack/knowledge/reference_cases.json +3 -0
- electronics_engineering_ai999x/pack/knowledge/relations.json +5 -0
- electronics_engineering_ai999x/pack/search/encoder.int8.onnx +0 -0
- electronics_engineering_ai999x/pack/search/index.json +1 -0
- electronics_engineering_ai999x/pack/search/tokenizer.json +8088 -0
- electronics_engineering_ai999x-1.0.0.dist-info/METADATA +150 -0
- electronics_engineering_ai999x-1.0.0.dist-info/RECORD +52 -0
- electronics_engineering_ai999x-1.0.0.dist-info/WHEEL +5 -0
- electronics_engineering_ai999x-1.0.0.dist-info/entry_points.txt +2 -0
- electronics_engineering_ai999x-1.0.0.dist-info/licenses/LICENSE +204 -0
- electronics_engineering_ai999x-1.0.0.dist-info/licenses/NOTICE +8 -0
- electronics_engineering_ai999x-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""electronics-engineering-ai999x — offline electronics engineering answers with their formula, steps and verification.
|
|
2
|
+
|
|
3
|
+
import electronics_engineering_ai999x as m
|
|
4
|
+
m.ask("BJT voltage-divider bias: VCC = 12 V, R1 = 47 kohm, R2 = 10 kohm, RC = 2.2 kohm, RE = 470 ohm, beta = 150, VBE = 0.7 V").show()
|
|
5
|
+
m.solve("elx_common_emitter_amplifier", IC=1e-3, beta=100.0, VT=0.025, RC=5000.0, RL=10e3, RE1=0.0, RB=20e3, Rsig=1000.0)
|
|
6
|
+
m.capabilities() # every certified capability
|
|
7
|
+
|
|
8
|
+
92 certified capabilities: semiconductors (thermal voltage, intrinsic and doped carrier concentrations, conductivity,
|
|
9
|
+
drift, the Einstein relation, built-in potential, depletion width, junction capacitance); diodes (Shockley equation and
|
|
10
|
+
its inverse, the exact diode-resistor operating point, rectifier averages, capacitor-filter ripple, Zener regulators and
|
|
11
|
+
their design, LED resistors); bipolar transistors (fixed, voltage-divider, emitter and collector-feedback bias, hybrid-pi
|
|
12
|
+
parameters, CE, CC and CB amplifiers, fT, the Miller effect and time-constant cutoffs, current mirrors, the Wilson
|
|
13
|
+
mirror, the cascode, the differential pair); MOSFETs and CMOS (drain current, gm and ro, divider bias, common-source and
|
|
14
|
+
source-follower amplifiers, body effect, inverter threshold and delay); op-amps (inverting, non-inverting, summing,
|
|
15
|
+
difference and instrumentation amplifiers, finite gain, integrator, differentiator, gain-bandwidth and slew-rate limits,
|
|
16
|
+
offsets, Schmitt triggers, feedback, phase margin); active filters (first order, Sallen-Key, multiple feedback,
|
|
17
|
+
Butterworth and Chebyshev order and sections); oscillators (RC phase-shift, Wien bridge, Colpitts, Hartley, crystal,
|
|
18
|
+
relaxation, 555, PLL); data converters (ADC code, quantisation SNR, ENOB, jitter, R-2R and binary-weighted DACs, SAR,
|
|
19
|
+
dual slope, sample-and-hold); timing (RC and Elmore delay, CMOS power, setup and hold, metastability); power supplies
|
|
20
|
+
(linear and adjustable regulators, series-pass regulators, heat sinks).
|
|
21
|
+
Questions use one documented form, "<capability phrase>: name = value, ..." with units; a question that is not
|
|
22
|
+
determined is refused rather than guessed.
|
|
23
|
+
|
|
24
|
+
Creator / engineer: Ibnul Jaif Farabi. Company: AI999X.
|
|
25
|
+
"""
|
|
26
|
+
from __future__ import annotations
|
|
27
|
+
|
|
28
|
+
from pathlib import Path
|
|
29
|
+
|
|
30
|
+
try: # the installed package carries its own copy of the engine
|
|
31
|
+
from ._engine import Answer
|
|
32
|
+
from ._engine.product import Product
|
|
33
|
+
except ImportError: # the factory's source tree, during development
|
|
34
|
+
from ai999x_factory.runtime import Answer
|
|
35
|
+
from ai999x_factory.runtime.product import Product
|
|
36
|
+
|
|
37
|
+
__version__ = "1.0.0"
|
|
38
|
+
_P = Product("electronics_engineering", [Path(__file__).resolve().parent / "pack", Path(__file__).resolve().parents[3]])
|
|
39
|
+
pack, ask, solve, compile_problem = _P.pack, _P.ask, _P.solve, _P.compile_problem
|
|
40
|
+
formula, formulas, quantities, conditions, capabilities = _P.formula, _P.formulas, _P.quantities, _P.conditions, _P.capabilities
|
|
41
|
+
examples, family_examples, structured_example, to_si = _P.examples, _P.family_examples, _P.structured_example, _P.to_si
|
|
42
|
+
templates, procedure_examples = _P.templates, _P.procedure_examples
|
|
43
|
+
prove, derivations, about = _P.prove, _P.derivations, (lambda: {**_P.about(), "version": __version__})
|
|
44
|
+
knowledge, lookup, related = _P.knowledge, _P.lookup, _P.related
|
|
45
|
+
plot, plot_relation, search = _P.plot, _P.plot_relation, _P.search # figures (SVG) and capability search ([search])
|
|
46
|
+
__all__ = ["ask", "solve", "prove", "derivations", "about", "formula", "formulas", "quantities", "conditions", "capabilities",
|
|
47
|
+
"compile_problem", "pack", "Answer", "plot", "plot_relation", "search", "__version__"]
|