Skip to content

Commit eb843ea

Browse files
authored
Merge pull request #283 from bbahiam/linear
Correct typos caught by Divya Sanghi
2 parents d8972bb + ddff06b commit eb843ea

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

sharpy/linear/src/lingebm.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -1464,23 +1464,23 @@ def newmark_ss(M, C, K, dt, num_damp=1e-4, M_is_SPD=False):
14641464
\mathbf{q}_{n} \\
14651465
\mathbf{\dot q}_{n}
14661466
\end{Bmatrix}
1467-
- \mathbf{A_{ss1}}^{-1}\mathbf{B_{ss1}} \mathbf{f}_n
1467+
- \mathbf{A}_{\mathbf{ss1}}^{-1}\mathbf{B_{ss1}} \mathbf{f}_n
14681468
14691469
Then
14701470
14711471
.. math::
1472-
\mathbf{x}_{n+1} &= \mathbf{A_{ss1}}^{-1}[
1472+
\mathbf{x}_{n+1} &= \mathbf{A}_{\mathbf{ss1}}^{-1}[
14731473
\mathbf{A_{ss0}} \mathbf{x}_n + (
1474-
\mathbf{A_{ss0}}\mathbf{A_{ss1}}^{-1}\mathbf{B_{ss1}}
1474+
\mathbf{A_{ss0}}\mathbf{A}_{\mathbf{ss1}}^{-1}\mathbf{B_{ss1}}
14751475
+ \mathbf{B_{ss0}}
14761476
)
14771477
\mathbf{f}_n
14781478
] \\
14791479
\begin{Bmatrix}
1480-
\mathbf{\dot q}_{n} \\
1481-
\mathbf{\ddot q}_{n}
1480+
\mathbf{q}_{n} \\
1481+
\mathbf{\dot q}_{n}
14821482
\end{Bmatrix}
1483-
&= \mathbf{x}_n + \mathbf{B_{ss1}} \mathbf{f}_n
1483+
&= \mathbf{x}_n + \mathbf{A}_{\mathbf{ss1}}^{-1}\mathbf{B_{ss1}} \mathbf{f}_n
14841484
14851485
See also :func:`sharpy.linear.src.libss.SSconv` for more details on the elimination of the term
14861486
multiplying :math:`\mathbf{f}_{n+1}` in the state equation.
@@ -1494,11 +1494,11 @@ def newmark_ss(M, C, K, dt, num_damp=1e-4, M_is_SPD=False):
14941494
where
14951495
14961496
.. math::
1497-
\mathbf{A_{ss}} &= \mathbf{A_{ss1}}^{-1}\mathbf{A_{ss0}} \\
1498-
\mathbf{B_{ss}} &= \mathbf{A_{ss1}}^{-1}(\mathbf{B_{ss0}}
1499-
+ \mathbf{A_{ss0}}\mathbf{A_{ss1}}^{-1}\mathbf{B_{ss1}}) \\
1497+
\mathbf{A_{ss}} &= \mathbf{A}_{\mathbf{ss1}}^{-1}\mathbf{A_{ss0}} \\
1498+
\mathbf{B_{ss}} &= \mathbf{A_{\mathbf{ss1}}^{-1}(\mathbf{B_{ss0}}
1499+
+ \mathbf{A_{ss0}}\mathbf{A_{\mathbf{ss1}}^{-1}\mathbf{B_{ss1}}) \\
15001500
\mathbf{C_{ss}} &= \mathbf{I} \\
1501-
\mathbf{D_{ss}} &= \mathbf{B_{ss1}}
1501+
\mathbf{D_{ss}} &= \mathbf{A_{\mathbf{ss1}}^{-1}\mathbf{B_{ss1}}
15021502
15031503
15041504
.. admonition:: Notation is used in the code

0 commit comments

Comments
 (0)