diff --git a/docs/Demonstration of equation class.html b/docs/Demonstration of equation class.html index 26385ea..f75fe1d 100644 --- a/docs/Demonstration of equation class.html +++ b/docs/Demonstration of equation class.html @@ -14647,7 +14647,7 @@
This notebook is running Algebra_with_Sympy version 0.12.0. +This notebook is running Algebra_with_Sympy version 1.0.0.
Integration | Combining Equations | Output options | -Control Interpretation of Integers (new in v0.12.0) | +Control Interpretation of Integers | Utility operations | Errors tested for | -Automatic Solutions (new in v0.11.0) | -Check version
+Automatic Solutions | +Check versionAlgebra_with_Sympy has a convenience operation units(...)
which takes a string of space
+separated symbols to use as units. This simply declares the symbols
+to be positive, making them behave as units. This does not create units
+that know about conversions, prefixes or systems of units. This lack
+is on purpose to provide units that require the user to worry about
+conversions (ideal in a teaching situation). To get units with built-in
+conversions see sympy.physics.units
.
var('L atm mol K', positive=True, real=True) # Some units
+units('L atm mol K') # Liters, atmospheres, moles and Kelvin
eq2.subs({R:0.08206*L*atm/mol/K,T:273*K,n:1.00*mol,V:24.0*L})
@@ -17806,7 +17813,7 @@ Multistep rearrangement
-$E=Eo - \frac{R T \ln{\left(Q \right)}}{F z}\,\,\,\,\,\,\,\,\,\,(\text{N1})$
+$E=Eo - \frac{R T \log{\left(Q \right)}}{F z}\,\,\,\,\,\,\,\,\,\,(\text{N1})$
# Display equation wrapped as a Latex equation in `\begin{equation}...\end{equation}`
+algwsym_config.output.latex_as_equations = True
+IdG1
+
# Turn it back off
+algwsym_config.output.latex_as_equations = False
+IdG1
+
# Default behavior
@@ -19730,7 +19823,7 @@ Control Interpretation of Integers
- Out[119]:
+ Out[121]:
@@ -19750,7 +19843,7 @@ Control Interpretation of Integers
var('x')
@@ -19773,7 +19866,7 @@ Control Interpretation of Integers
- Out[120]:
+ Out[122]:
@@ -19793,7 +19886,7 @@ Control Interpretation of Integers
solve(quad,x)
@@ -19814,7 +19907,7 @@ Control Interpretation of Integers
- Out[121]:
+ Out[123]:
@@ -19834,7 +19927,7 @@ Control Interpretation of Integers
print("Integers as exact flag: " + str(algwsym_config.numerics.integers_as_exact))
@@ -19885,7 +19978,7 @@ Control Interpretation of Integers
- Out[123]:
+ Out[125]:
@@ -19905,7 +19998,7 @@ Control Interpretation of Integers
quad =@ x**2 + 3/2*x + 1 = 0
@@ -19927,7 +20020,7 @@ Control Interpretation of Integers
- Out[124]:
+ Out[126]:
@@ -19947,7 +20040,7 @@ Control Interpretation of Integers
solve(quad,x)
@@ -19968,7 +20061,7 @@ Control Interpretation of Integers
- Out[125]:
+ Out[127]:
@@ -19988,7 +20081,7 @@ Control Interpretation of Integers
# Turn treating integers as exact on again
@@ -20005,7 +20098,7 @@ Control Interpretation of Integers
print("Integers as exact flag: " + str(algwsym_config.numerics.integers_as_exact))
@@ -20039,7 +20132,7 @@ Control Interpretation of Integers
- Out[127]:
+ Out[129]:
@@ -20070,7 +20163,7 @@ Utility operations
t
@@ -20091,7 +20184,7 @@ Utility operations
- Out[128]:
+ Out[130]:
@@ -20111,7 +20204,7 @@ Utility operations
t.reversed
@@ -20132,7 +20225,7 @@ Utility operations
- Out[129]:
+ Out[131]:
@@ -20152,7 +20245,7 @@ Utility operations
t.swap
@@ -20173,7 +20266,7 @@ Utility operations
- Out[130]:
+ Out[132]:
@@ -20193,7 +20286,7 @@ Utility operations
t.lhs
@@ -20214,7 +20307,7 @@ Utility operations
- Out[131]:
+ Out[133]:
@@ -20234,7 +20327,7 @@ Utility operations
t.rhs
@@ -20255,7 +20348,7 @@ Utility operations
- Out[132]:
+ Out[134]:
@@ -20275,7 +20368,7 @@ Utility operations
t.check()
@@ -20296,7 +20389,7 @@ Utility operations
- Out[133]:
+ Out[135]:
@@ -20316,7 +20409,7 @@ Utility operations
t.subs({a:1/2,b:1,c:2}).check()
@@ -20337,7 +20430,7 @@ Utility operations
- Out[134]:
+ Out[136]:
@@ -20357,7 +20450,7 @@ Utility operations
TF = t.as_Boolean()
@@ -20379,7 +20472,7 @@ Utility operations
- Out[135]:
+ Out[137]:
@@ -20399,7 +20492,7 @@ Utility operations
TF.subs({a:1,b:2,c:3})
@@ -20420,7 +20513,7 @@ Utility operations
- Out[136]:
+ Out[138]:
@@ -20440,7 +20533,7 @@ Utility operations
# Getting everything on one side
@@ -20462,7 +20555,7 @@ Utility operations
- Out[137]:
+ Out[139]:
@@ -20482,7 +20575,7 @@ Utility operations
t - t.lhs
@@ -20503,7 +20596,7 @@ Utility operations
- Out[138]:
+ Out[140]:
@@ -20523,7 +20616,7 @@ Utility operations
t.rewrite(Add)
@@ -20544,7 +20637,7 @@ Utility operations
- Out[139]:
+ Out[141]:
@@ -20575,7 +20668,7 @@ Errors tested for
# Test for errors
@@ -20629,7 +20722,7 @@ Errors tested for
-The argument 'a = b/c (t)' is not comparable.
+The argument 'a = b/c' is not comparable.
----
You must specify `side="lhs"` or `side="rhs"` when integrating an Equation
----
@@ -20647,7 +20740,7 @@ Errors tested for
- Out[140]:
+ Out[142]:
@@ -20667,7 +20760,7 @@ Errors tested for
Equation(pi*(I+2), pi*I+2*pi).check()
@@ -20688,7 +20781,7 @@ Errors tested for
- Out[141]:
+ Out[143]:
@@ -20708,7 +20801,7 @@ Errors tested for
Eqn(a,a+1).check()
@@ -20729,7 +20822,7 @@ Errors tested for
- Out[142]:
+ Out[144]:
@@ -20749,7 +20842,7 @@ Errors tested for
Equation(pi*(I+2), pi*I+2*pi+I).check()
@@ -20770,7 +20863,7 @@ Errors tested for
- Out[143]:
+ Out[145]:
@@ -20790,7 +20883,7 @@ Errors tested for
Eqn(cos(a)+I*sin(a),exp(I*a)).check()
@@ -20811,7 +20904,7 @@ Errors tested for
- Out[144]:
+ Out[146]:
@@ -20831,7 +20924,7 @@ Errors tested for
_.simplify()
@@ -20852,7 +20945,7 @@ Errors tested for
- Out[145]:
+ Out[147]:
@@ -20872,7 +20965,7 @@ Errors tested for
Eqn(cos(pi)+I*sin(pi),exp(I*pi))
@@ -20893,7 +20986,7 @@ Errors tested for
- Out[146]:
+ Out[148]:
@@ -20913,7 +21006,7 @@ Errors tested for
_.check()
@@ -20934,7 +21027,7 @@ Errors tested for
- Out[147]:
+ Out[149]:
@@ -20966,7 +21059,7 @@ Atomatic solutions (sympy.solve)
eqtosolve =@ a - b = c/a
@@ -20988,7 +21081,7 @@ Atomatic solutions (sympy.solve)
- Out[148]:
+ Out[150]:
@@ -21008,7 +21101,7 @@ Atomatic solutions (sympy.solve)
solve(eqtosolve,a)
@@ -21029,7 +21122,7 @@ Atomatic solutions (sympy.solve)
- Out[149]:
+ Out[151]:
@@ -21049,7 +21142,7 @@ Atomatic solutions (sympy.solve)
solve(eqtosolve.lhs-eqtosolve.rhs, a)
@@ -21070,7 +21163,7 @@ Atomatic solutions (sympy.solve)
- Out[150]:
+ Out[152]:
@@ -21090,7 +21183,7 @@ Atomatic solutions (sympy.solve)
solve(eqtosolve,c)
@@ -21111,7 +21204,7 @@ Atomatic solutions (sympy.solve)
- Out[151]:
+ Out[153]:
@@ -21131,7 +21224,7 @@ Atomatic solutions (sympy.solve)
solve(eqtosolve,b)
@@ -21152,7 +21245,7 @@ Atomatic solutions (sympy.solve)
- Out[152]:
+ Out[154]:
@@ -21172,7 +21265,7 @@ Atomatic solutions (sympy.solve)
solve(N1,Q)
@@ -21193,13 +21286,13 @@ Atomatic solutions (sympy.solve)
- Out[153]:
+ Out[155]:
-$\left\{Q=e^{\frac{F z \left(- E + Eo\right)}{R T}}\,\,\,\,\,\,\,\,\,\,(\text{N5})\right\}$
+$\left\{Q=e^{\frac{F z \left(- E + Eo\right)}{R T}}\right\}$
# A system of equations with multiple solutions
@@ -21238,7 +21331,7 @@ Atomatic solutions (sympy.solve)
- Out[154]:
+ Out[156]:
@@ -21258,7 +21351,7 @@ Atomatic solutions (sympy.solve)