Skip to content

Commit a07cf19

Browse files
committed
Updated docstrings
1 parent 816699e commit a07cf19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/linsolve/linsolve.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
describing the equation (which is parsed according to python syntax) and each
1313
value is the corresponding "measured" value of that equation. Variable names
1414
in equations are checked against keyword arguments to the solver to determine
15-
if they are provided constants or parameters to be solved for. Parameter anmes
15+
if they are provided constants or parameters to be solved for. Parameter names
1616
and solutions are return are returned as key:value pairs in ls.solve().
1717
Parallel instances of equations can be evaluated by providing measured values
1818
as numpy arrays. Constants can also be arrays that comply with standard numpy
1919
broadcasting rules. Finally, weighting is implemented through an optional wgts
2020
dictionary that parallels the construction of data.
2121
22-
LinearSolver solves linear equations of the form 'a*x + b*y + c*z'.
22+
LinearSolver solves linear equations of the form 'a*x + b*y + c*z + d'.
2323
LogProductSolver uses logrithms to linearize equations of the form 'x*y*z'.
2424
LinProductSolver uses symbolic Taylor expansion to linearize equations of the
2525
form 'x*y + y*z'.
@@ -308,7 +308,7 @@ def infer_dtype(values):
308308

309309
class LinearSolver:
310310
def __init__(self, data, wgts={}, sparse=False, **kwargs):
311-
"""Set up a linear system of equations of the form 1*a + 2*b + 3*c = 4.
311+
"""Set up a linear system of equations of the form 1*a + 2*b + 3*c + 4 = 5.
312312
313313
Parameters
314314
----------

0 commit comments

Comments
 (0)