flâneur — a map of the web's best reading

Expressions — Lcapy 1.21.dev0 documentation

lcapy.readthedocs.io · 15,284 words · saved by 1 readers

Lcapy expressions are similar to SymPy expressions except they have a specific domain depending on the predefined domain variables t, s, f, F omega (w), Omega (W), jf, and jomega (jw). They have associated quantities, domains, and units. Lcapy expressions are comprised of numbers, pre-defined constant symbols, domain variables, user-defined symbols, and functions. Lcapy approximates real numbers as rationals. This ensures expected simplifications of expressions. However, some floating-point numbers produce unwieldy rationals (see Floating point values) and so it is best to avoid floating-point numbers. For example, use: or rather than The floating-point approximation can be found using fval attribute for a Python float or cval for a Python complex number: Rational numbers in Lcapy expressions can be converted to SymPy floating-point numbers using the evalf() method, with a specified number of decimal places. For example: If you prefer floating-point numbers use the ratfloat() method. F

Expressions - Lcapy 1.27.dev0 documentation Expressions View page source Expressions  Lcapy expressions are similar to SymPy expressions except they have a specific domain depending on the predefined domain variables t , s , f , F omega ( w ), Omega ( W ), jf , and jomega ( jw ). They have associated quantities, domains, and units. Introduction  Lcapy expressions are comprised of numbers, pre-defined constant symbols, domain variables, user-defined symbols, and functions. Numbers  Lcapy approximates real numbers as rationals. This ensures expected simplifications of expressions. However, so

Explore this link on the map →

related reading