Creates a displayed matrix equation without evaluating it. :param Iv: Left hand side of the equation: vector with independent variables :type Iv: sympy.Matrix :param M: Right hand side of the equation: matrix :type M: sympy.Matrix :param Dv: Righth
(self, Iv, M, Dv, label="")
| 474 | return Snippet(RST, self.format) |
| 475 | |
| 476 | def matrixEqn(self, Iv, M, Dv, label=""): |
| 477 | """ |
| 478 | Creates a displayed matrix equation without evaluating it. |
| 479 | |
| 480 | :param Iv: Left hand side of the equation: vector with independent variables |
| 481 | :type Iv: sympy.Matrix |
| 482 | |
| 483 | :param M: Right hand side of the equation: matrix |
| 484 | :type M: sympy.Matrix |
| 485 | |
| 486 | :param Dv: Righthand side of the equation: vector with dependent variables |
| 487 | :type Dv: sympy.Matrix |
| 488 | |
| 489 | :param label: Reference label for the table. Defaults to an empty string. |
| 490 | :type label: str |
| 491 | |
| 492 | :return: SLiCAP Snippet object |
| 493 | :rtype: SLiCAP.SLiCAPprotos.Snippet |
| 494 | """ |
| 495 | RST = '.. math::\n' |
| 496 | if label != '': |
| 497 | RST += ' :label: ' + label + '\n' |
| 498 | RST += '\n' |
| 499 | RST += ' ' + sp.latex(roundN(Iv)) + '=' |
| 500 | RST += sp.latex(roundN(M)) + '\\cdot ' + sp.latex(roundN(Dv)) + '\n\n' |
| 501 | return Snippet(RST, self.format) |
| 502 | |
| 503 | def stepArray(self, stepVars, stepArray, label="", caption=""): |
| 504 | """ |
no test coverage detected