Repository navigation
symbulator 0.6.17
Added
evaluate(result, "expression")andsolve(result, equations, unknowns)-- the app's Evaluate box and Solve card as package
functions, so a notebook can do what the calculator did with a solved
circuit's variables:evaluate(res, "vo/vs"),evaluate(res, "vc", conditions=["t = 2"]),solve(res, ["im(ze) = 0"], ["w"], conditions=["w > 0"], real_only=True). Both return SymPy and read
answer names in every spelling (i_r1,ir1,IR1), with the same
shorthand a circuit value gets (2'k,^,u(t),{...}in FD).
evaluatealso answerspf(...),s2t(...)/t2s(...)and
limit(...)with the answers substituted in first, takes a condition at
infinity as a limit, and on ath()result knows the load answers
irl,vrlandprlin the variableload.solvereads a pinning
condition (R_3 = 10) as a substitution and a comparison as a filter on
the roots, andreal_only=Trueis the calculator'ssolve()against
itscSolve(). Aport()result and a plain mapping of names to values
are accepted too, the latter being hower()'s single expression is
handed over. New modulesymbulator/cards.py; nothing else changes.Result.desc, the circuit a result was solved from. It lets
cards.pyderive an element's voltage drop from the two nodes it spans,
which in fd and tr is not amongvalues-- the third level is computed
for dc and ac only -- sovcnames an answer on the app's page while
the package had no such key.- Notebooks.
notebooks/books/holds one executed notebook per built-in
example book (the Course's problems, the two textbook samplers, the
Showcase and the monograph's exemplars), A Baker's Dozen, and the
Manual's circuits, each generated from the app's own files and compared
with the app answer by answer. Not part of the installed package.
Fixed
th(),er()andport()accept a frequency written as a string, as
ac()always has:th(circuit, "2", "0", domain="ac", omega="2*pi*2e3")
reached the stamping code as astrand failed there with can't multiply
sequence by non-int of type ImaginaryUnit, naming nothing the caller had
typed. The one place all of them pass through now sympifies it.
On PyPI: https://pypi.org/project/symbulator/0.6.17/ (wheel sha256 c7108cbd0395...).