Timestamp: |
11-Oct-2024 19:45:14 |
Host: |
fv-az1316-275 |
Platform: |
glnxa64 |
MATLAB Version: |
24.1.0.2689473 (R2024a) Update 6 |
Number of Tests: |
15 |
Testing Time: |
60.6096 seconds |
Overall Result: |
PASSED |
/home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/
35.6567 seconds |
||
24.9529 seconds |
||
The test passed. Duration: 6.1203 seconds
Event:
Diagnostic logged.
Timestamp: 11-Oct-2024 19:44:14 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_f3e0314e-a584-4251-aeb4-9969cc29b98a.png Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=Eigenanalysis.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 73 |
(Overview)
The test passed. Duration: 18.2105 seconds
Events:
Diagnostic logged.
Timestamp: 11-Oct-2024 19:44:32 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_221ef34e-5cc0-42da-8ebd-981af924f21f.png Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=EigenanalysisApplications.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 73 |
Diagnostic logged.
Timestamp: 11-Oct-2024 19:44:33 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_c6b5bebe-017d-4993-9c3d-d560d0605093.png Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=EigenanalysisApplications.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 73 |
Diagnostic logged.
Timestamp: 11-Oct-2024 19:44:34 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_2a05d221-f5ef-454f-9844-ceae07d10aed.png Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=EigenanalysisApplications.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 73 |
Diagnostic logged.
Timestamp: 11-Oct-2024 19:44:34 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_00f9b90c-9a2b-4624-8a59-baf50005879a.png Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=EigenanalysisApplications.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 73 |
Diagnostic logged.
Timestamp: 11-Oct-2024 19:44:35 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_376e60e6-e22d-48d9-9dd0-8347790e3945.png Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=EigenanalysisApplications.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 73 |
(Overview)
The test passed. Duration: 8.6547 seconds
Events:
Diagnostic logged.
Timestamp: 11-Oct-2024 19:44:38 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_7ae6b2ae-19c1-45c4-ad43-d542d8e495b3.png Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=LinearSystems.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 73 |
Diagnostic logged.
Timestamp: 11-Oct-2024 19:44:42 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_a885f7fa-3988-4e3b-ae66-4f9331de5b0a.png Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=LinearSystems.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 73 |
(Overview)
The test passed. Duration: 1.1184 seconds
Event:
Diagnostic logged.
Timestamp: 11-Oct-2024 19:44:44 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_2bb4adf4-1e8b-4a1d-8fcb-dd07d7706c1a.png Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=LinearSystemsApplications.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 73 |
(Overview)
The test passed. Duration: 1.5528 seconds
Event:
Diagnostic logged.
Timestamp: 11-Oct-2024 19:44:46 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_5cfe15c7-e7f9-424f-8f59-24b0028d3bb7.png Event Location: SmokeTests[Project=matlab.project.Project]/SmokeRun(File=MatrixOperations.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SmokeTests.m (SmokeTests.SmokeRun) at 73 |
(Overview)
The test passed. Duration: 0.0505 seconds
(Overview)
The test passed. Duration: 0.0004 seconds
(Overview)
The test passed. Duration: 0.0003 seconds
(Overview)
The test passed. Duration: 0.0003 seconds
(Overview)
The test passed. Duration: 0.0008 seconds
(Overview)
The test passed. Duration: 0.8897 seconds
Event:
Diagnostic logged.
Timestamp: 11-Oct-2024 19:44:47 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_99600c1a-a574-4497-8dae-8a5b9a4d4253.png Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=Eigenanalysis.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 89 |
(Overview)
The test passed. Duration: 14.6747 seconds
Events:
Diagnostic logged.
Timestamp: 11-Oct-2024 19:45:00 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_b151ce0f-dabc-4d50-80f5-56835d61071a.png Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=EigenanalysisApplications.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 89 |
Diagnostic logged.
Timestamp: 11-Oct-2024 19:45:01 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_9537ce68-ed38-47fb-8ec1-4ccb893bcc6c.png Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=EigenanalysisApplications.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 89 |
Diagnostic logged.
Timestamp: 11-Oct-2024 19:45:01 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_bf27decd-e901-42c9-af83-ec901f02e47a.png Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=EigenanalysisApplications.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 89 |
Diagnostic logged.
Timestamp: 11-Oct-2024 19:45:02 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_7b23d5bc-40b2-46c4-8bc9-e380c0ed2379.png Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=EigenanalysisApplications.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 89 |
Diagnostic logged.
Timestamp: 11-Oct-2024 19:45:02 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_981c7a89-817f-402b-ae25-e8a2b0c6267d.png Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=EigenanalysisApplications.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 89 |
(Overview)
The test passed. Duration: 7.2139 seconds
Events:
Diagnostic logged.
Timestamp: 11-Oct-2024 19:45:04 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_33989729-3233-410e-a6af-6f5982095258.png Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=LinearSystems.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 89 |
Diagnostic logged.
Timestamp: 11-Oct-2024 19:45:08 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_fd1a2cde-2cb6-4c49-ad9a-a2c5623e308e.png Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=LinearSystems.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 89 |
(Overview)
The test passed. Duration: 1.0412 seconds
Event:
Diagnostic logged.
Timestamp: 11-Oct-2024 19:45:10 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_bedb2e0a-48e7-4d78-8150-4f3cd688acdb.png Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=LinearSystemsApplications.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 89 |
(Overview)
The test passed. Duration: 1.0812 seconds
Event:
Diagnostic logged.
Timestamp: 11-Oct-2024 19:45:11 Verbosity: Terse Logged Diagnostic: Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_8871ecb2-3c79-4946-a3ee-3daf330f6fcb.png Event Location: SolnSmokeTests[Project=matlab.project.Project]/SmokeRun(File=MatrixOperations.mlx) Stack: In /home/runner/work/Matrix-Methods-of-Linear-Algebra/Matrix-Methods-of-Linear-Algebra/SoftwareTests/SolnSmokeTests.m (SolnSmokeTests.SmokeRun) at 89 |
(Overview)
Running SmokeTests >> Running Eigenanalysis.mlx A = [ 2, -1] [-1, 2] x = 3^(1/2)/2 -1/2 Ax = 3^(1/2) + 1/2 - 3^(1/2)/2 - 1 G = 1 2 3 4 5 6 7 8 9 H = 1 2 3 4 5 0 7 8 0 ans = 2.2204e-16 J = [4, 1, 0] [0, 4, 1] [0, 0, 4] V = 1 0 0 D = [4, 0, 0] [0, 4, 0] [0, 0, 4] detJ = 64 D = [2, 0, 0] [0, 2, 0] [0, 0, 3] K = [2, 1, 0] [0, 2, 1] [0, 0, 3] [Terse] Diagnostic logged (2024-10-11 19:44:14): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_f3e0314e-a584-4251-aeb4-9969cc29b98a.png .>> Running EigenanalysisApplications.mlx Did you solve the problem? A = -2 1 0 0 1 -2 1 0 0 1 -2 1 0 0 1 -2 P = [p1_1, p1_2, p1_3, p1_4, p1_5] [p2_1, p2_2, p2_3, p2_4, p2_5] [p3_1, p3_2, p3_3, p3_4, p3_5] [p4_1, p4_2, p4_3, p4_4, p4_5] [p5_1, p5_2, p5_3, p5_4, p5_5] rnew = p1_1*r1 + p1_2*r2 + p1_3*r3 + p1_4*r4 + p1_5*r5 p2_1*r1 + p2_2*r2 + p2_3*r3 + p2_4*r4 + p2_5*r5 p3_1*r1 + p3_2*r2 + p3_3*r3 + p3_4*r4 + p3_5*r5 p4_1*r1 + p4_2*r2 + p4_3*r3 + p4_4*r4 + p4_5*r5 p5_1*r1 + p5_2*r2 + p5_3*r3 + p5_4*r4 + p5_5*r5 P = [p1_1, p1_2, 1/100, p1_4, p1_5] [p2_1, p2_2, 1/25, p2_4, p2_5] [p3_1, p3_2, 17/20, p3_4, p3_5] [p4_1, p4_2, 1/10, p4_4, p4_5] [p5_1, p5_2, 0, p5_4, p5_5] P = 0.8700 0.0500 0.0100 0.0100 0.0100 0.1300 0.8300 0.0400 0.0200 0.0100 0 0.1200 0.8500 0.0500 0.0200 0 0 0.1000 0.9000 0.0300 0 0 0 0.0200 0.9300 r = 0.2000 0.2000 0.2000 0.2000 0.2000 D = 0.7424 0 0 0 0 0 0.8140 0 0 0 0 0 1.0000 0 0 0 0 0 0.8965 0 0 0 0 0 0.9271 [Warning: Ignoring extra legend entries.] [> In legend>process_inputs (line 590) In legend>make_legend (line 319) In legend (line 263) In EigenanalysisApplications (line 91) In run (line 112) In SmokeTests/SmokeRun (line 57)] [Terse] Diagnostic logged (2024-10-11 19:44:32): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_221ef34e-5cc0-42da-8ebd-981af924f21f.png [Terse] Diagnostic logged (2024-10-11 19:44:33): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_c6b5bebe-017d-4993-9c3d-d560d0605093.png [Terse] Diagnostic logged (2024-10-11 19:44:34): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_2a05d221-f5ef-454f-9844-ceae07d10aed.png [Terse] Diagnostic logged (2024-10-11 19:44:34): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_00f9b90c-9a2b-4624-8a59-baf50005879a.png [Terse] Diagnostic logged (2024-10-11 19:44:35): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_376e60e6-e22d-48d9-9dd0-8347790e3945.png .>> Running LinearSystems.mlx LinearSystem = y + z == -1 y - 2*z == 2 a*x + b*y + c*z == d MySltn = "" MySltn = "" matrix([[a1_1, a1_2, a1_3], [a2_1, a2_2, a2_3], [a3_1, a3_2, a3_3]])*matrix([[x1], [x2], [x3]]) == matrix([[b1], [b2], [b3]]) Ax = [] eqs = [] matrix([[a1_1, a1_2, a1_3], [a2_1, a2_2, a2_3], [a3_1, a3_2, a3_3]])*matrix([[x1], [x2], [x3]]) == matrix([[b1], [b2], [b3]]) A = [ 4, -1, 1/2] [1/2, 1/10, -1/2] [ 1, 4, -1/2] C = [ 13/34, 5/17, 3/34] [-5/102, -5/17, 25/102] [ 19/51, -30/17, 7/51] D = [13/60, 1/6, 1/20] [-1/36, -5/18, 1/4] [19/90, -17/9, 1/10] b = -2 1 -3 x = [] [Warning: Your answer does not match the expected result.] [> In LinearSystems>IsEqualCheck (line 307) In LinearSystems (line 78) In run (line 112) In SmokeTests/SmokeRun (line 57)] 1. Write A and I together as a single augmented matrix matrix([[1/2, 2, 1, 1, 0, 0], [1, 2, -1, 0, 1, 0], [-1, 0, -4, 0, 0, 1]]) A = matrix([[8, 9, 3], [9, 6, 5], [2, 1, 9]]) A = [ empty sym ] B = [ empty sym ] C = [ empty sym ] Ainv = [] Binv = [] Cinv = [] matrix([[10, 4, -9, -7, -4, 9, -3, -6, 7, -1, -7, -9, -8, -2, -1], [-6, 6, -1, 0, 7, -4, -6, 7, -1, -8, 6, -6, 9, 9, -3], [10, 5, -2, 10, -4, 6, 6, 1, 9, -5, -2, 3, 6, 8, 9], [10, -2, 6, -3, 7, 6, -3, 10, -6, -7, -5, 5, 0, 2, -1], [0, 4, 6, 2, -5, -2, 1, -8, -4, -6, -1, 3, -1, 3, -6], [7, -6, -6, -5, 9, 2, -6, -1, -7, -5, -8, 0, -1, 2, 9], [-7, 5, 0, 6, -3, -8, 3, -7, -7, -1, -7, 1, -3, -5, 10], [-1, -9, -1, -4, -6, -8, -4, 10, 8, -9, 9, -4, 1, -3, -1], [9, -4, 3, 1, -4, 1, 4, -9, 2, 9, 10, 5, 1, 0, -7], [6, -9, 5, 4, 3, 6, 4, 6, 1, 9, 2, -6, 7, -5, -4], [10, -8, 6, 8, 0, 9, 5, 7, -7, 0, -8, 4, 6, 7, -1], [4, 7, -4, 10, -2, -7, 0, 8, 8, 0, -5, -6, 3, -6, 2], [-9, 4, 4, 1, 7, 2, -8, -8, 3, -3, -2, -2, -2, -5, -4], [7, -3, 4, -7, 2, 0, -5, -2, -2, 9, 7, 3, 7, -6, 3], [9, 10, -6, -7, 1, -9, 9, -4, 1, -2, -9, 6, 1, -5, 5]])matrix([[x1], [x2], [x3], [x4], [x5], [x6], [x7], [x8], [x9], [x10], [x11], [x12], [x13], [x14], [x15]]) = matrix([[-5], [-7], [-4], [-3], [-1], [1], [-8], [-4], [7], [-9], [9], [5], [0], [2], [-5]]) [Warning: Your answer does not match the expected result.] [> In LinearSystems>IsEqualCheck (line 307) In LinearSystems (line 159) In run (line 112) In SmokeTests/SmokeRun (line 57)] InvA = [] [Warning: Your answer does not match the expected result.] [> In LinearSystems>IsEqualCheck (line 307) In LinearSystems (line 163) In run (line 112) In SmokeTests/SmokeRun (line 57)] xSoln1 = [] [Warning: Your answer does not match the expected result.] [> In LinearSystems>IsEqualCheck (line 307) In LinearSystems (line 166) In run (line 112) In SmokeTests/SmokeRun (line 57)] xSoln2 = [] [Warning: Your answer does not match the expected result.] [> In LinearSystems>IsEqualCheck (line 307) In LinearSystems (line 170) In run (line 112) In SmokeTests/SmokeRun (line 57)] C = [] d = [] x = Empty sym: 0-by-1 LinearSystem = [] That is the default. Please set up the linear system. condition = [] That is the default. Please enter a condition for the equation C*x=d to have a unique solution. Cinv = [] Correct! xSoln1 = [] Correct! xSoln2 = [] Correct! [Terse] Diagnostic logged (2024-10-11 19:44:38): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_7ae6b2ae-19c1-45c4-ad43-d542d8e495b3.png [Terse] Diagnostic logged (2024-10-11 19:44:42): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_a885f7fa-3988-4e3b-ae66-4f9331de5b0a.png .>> Running LinearSystemsApplications.mlx [Warning: You must define y_approx before plotting it.] [> In LinearSystemsApplications (line 54) In run (line 112) In SmokeTests/SmokeRun (line 57)] [Warning: Plot failed because w doesn't exist.] [> In LinearSystemsApplications (line 74) In run (line 112) In SmokeTests/SmokeRun (line 57)] [Warning: You must define I before you can check it.] [> In LinearSystemsApplications (line 85) In run (line 112) In SmokeTests/SmokeRun (line 57)] [Warning: You must define Ispec before you can check it.] [> In LinearSystemsApplications (line 96) In run (line 112) In SmokeTests/SmokeRun (line 57)] [Terse] Diagnostic logged (2024-10-11 19:44:44): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_2bb4adf4-1e8b-4a1d-8fcb-dd07d7706c1a.png .>> Running MatrixOperations.mlx Matrices have been (re)defined. [Warning: Matrices were not defined. They will be auto-populated.] [> In MatrixOperations>ValidateMatrices (line 172) In MatrixOperations (line 8) In run (line 112) In SmokeTests/SmokeRun (line 57)] A = [a1_1, a1_2, a1_3, a1_4, a1_5] [a2_1, a2_2, a2_3, a2_4, a2_5] [a3_1, a3_2, a3_3, a3_4, a3_5] [a4_1, a4_2, a4_3, a4_4, a4_5] [a5_1, a5_2, a5_3, a5_4, a5_5] A = matrix([[6, 8, 9], [8, 1, 2], [5, 4, 1]]) B = matrix([[8, 3, 9], [7, 2, 3], [9, 3, 7]]) D = matrix([[8, 3, 9, 8], [7, 2, 3, 4], [9, 3, 7, 8]]) A = matrix([[6, 8, 9], [8, 1, 2], [5, 4, 1]]) c = 7 A = matrix([[6, 8, 9], [8, 1, 2], [5, 4, 1]]) v = matrix([[5], [9], [2]]) u = matrix([[5], [9], [2], [1], [1]]) A = matrix([[6, 8, 9], [8, 1, 2], [5, 4, 1]]) B = matrix([[8, 3, 9], [7, 2, 3], [9, 3, 7]]) C = matrix([[9, 4, 5], [8, 1, 6], [8, 6, 4]]) A = matrix([[6, 8, 9, 7], [8, 1, 2, 3], [5, 4, 1, 4], [4, 5, 4, 5]]) D = matrix([[7, 0, 0, 0], [0, 3, 0, 0], [0, 0, 4, 0], [0, 0, 0, 5]]) I = matrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) A = matrix([[6, 8, 9, 7], [8, 1, 2, 3], [5, 4, 1, 4]]) I = matrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) [Warning: Your answer does not match the expected result.] [> In MatrixOperations>IsEqualCheck (line 183) In MatrixOperations (line 95) In run (line 112) In SmokeTests/SmokeRun (line 57)] [Warning: Your answer does not match the expected result.] [> In MatrixOperations>IsEqualCheck (line 183) In MatrixOperations (line 98) In run (line 112) In SmokeTests/SmokeRun (line 57)] P = 1 -2 1 -1 2 5 RpP = [] This is the default value. You must enter an expression. RC = [] [Warning: Your answer does not match the expected result.] [> In MatrixOperations>IsEqualCheck (line 183) In MatrixOperations (line 110) In run (line 112) In SmokeTests/SmokeRun (line 57)] RP = [] This is the default value. Please enter an expression to evaluate. I = [] [Warning: Your answer does not match the expected result.] [> In MatrixOperations>IsEqualCheck (line 183) In MatrixOperations (line 118) In run (line 112) In SmokeTests/SmokeRun (line 57)] v = [] [Warning: Your answer does not match the expected result.] [> In MatrixOperations>IsEqualCheck (line 183) In MatrixOperations (line 120) In run (line 112) In SmokeTests/SmokeRun (line 57)] D = [] Correct! ID = [] Correct! H = [] [Warning: Your answer does not match the expected result.] [> In MatrixOperations>IsEqualCheck (line 183) In MatrixOperations (line 129) In run (line 112) In SmokeTests/SmokeRun (line 57)] [Warning: Your answer does not match the expected result.] [> In MatrixOperations>IsEqualCheck (line 183) In MatrixOperations (line 133) In run (line 112) In SmokeTests/SmokeRun (line 57)] HG = [] Correct! Rsub = [] [Warning: Your answer does not match the expected result.] [> In MatrixOperations>IsEqualCheck (line 183) In MatrixOperations (line 142) In run (line 112) In SmokeTests/SmokeRun (line 57)] [Warning: Your answer does not match the expected result.] [> In MatrixOperations>IsEqualCheck (line 183) In MatrixOperations (line 144) In run (line 112) In SmokeTests/SmokeRun (line 57)] [Warning: Your answer does not match the expected result.] [> In MatrixOperations>IsEqualCheck (line 183) In MatrixOperations (line 148) In run (line 112) In SmokeTests/SmokeRun (line 57)] [Warning: Your answer does not match the expected result.] [> In MatrixOperations>IsEqualCheck (line 183) In MatrixOperations (line 152) In run (line 112) In SmokeTests/SmokeRun (line 57)] [Warning: Your answer does not match the expected result.] [> In MatrixOperations>IsEqualCheck (line 183) In MatrixOperations (line 156) In run (line 112) In SmokeTests/SmokeRun (line 57)] [Terse] Diagnostic logged (2024-10-11 19:44:46): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_5cfe15c7-e7f9-424f-8f59-24b0028d3bb7.png . Done SmokeTests __________ Running SolnSmokeTests .....>> Running EigenanalysisSoln.mlx A = [ 2, -1] [-1, 2] x = -2^(1/2)/2 2^(1/2)/2 Ax = -(3*2^(1/2))/2 (3*2^(1/2))/2 A = [ 2, -1] [-1, 2] V = [1, -1] [1, 1] D = [1, 0] [0, 3] B = [ 1, 2] [-3, -6] V = [-2, -1/3] [ 1, 1] D = [0, 0] [0, -5] v = -1 1 ans = 1 1 ans = 1 1 V = -0.7071 -0.7071 -0.7071 0.7071 D = 1 0 0 3 V = [1, -1] [1, 1] D = [1, 0] [0, 3] V = 1 1 1 -1 Lambda = 1 0 0 3 ans = 2 -1 -1 2 V = -0.7071 -0.7071 -0.7071 0.7071 D = 1 0 0 3 Vinv = -0.7071 -0.7071 -0.7071 0.7071 C = 3 5 0 -2 V = 1.0000 -0.7071 0 0.7071 D = 3 0 0 -2 Vinv = 1.0000 1.0000 0 1.4142 G = 1 2 3 4 5 6 7 8 9 H = 1 2 3 4 5 0 7 8 0 V = -0.2320 -0.7858 0.4082 -0.5253 -0.0868 -0.8165 -0.8187 0.6123 0.4082 D = 16.1168 0 0 0 -1.1168 0 0 0 -0.0000 detG = 6.6613e-16 V = -0.4258 -0.6667 0.7322 -0.4662 0.3333 -0.6294 -0.7755 0.6667 0.2602 D = 8.6533 0 0 0 -3.0000 0 0 0 0.3467 detH = -9.0000 ans = 2.2204e-16 J = [4, 1, 0] [0, 4, 1] [0, 0, 4] V = 1 0 0 D = [4, 0, 0] [0, 4, 0] [0, 0, 4] detJ = 64 D = [2, 0, 0] [0, 2, 0] [0, 0, 3] K = [2, 1, 0] [0, 2, 1] [0, 0, 3] VD = [0, 1, 0] [0, 0, 1] [1, 0, 0] DD = [3, 0, 0] [0, 2, 0] [0, 0, 2] VK = [1, 1] [1, 0] [1, 0] DK = [3, 0, 0] [0, 2, 0] [0, 0, 2] [Terse] Diagnostic logged (2024-10-11 19:44:47): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_99600c1a-a574-4497-8dae-8a5b9a4d4253.png .>> Running EigenanalysisApplicationsSoln.mlx A = [-2, 1, 0, 0] [ 1, -2, 1, 0] [ 0, 1, -2, 1] [ 0, 0, 1, -2] A = -2 1 0 0 1 -2 1 0 0 1 -2 1 0 0 1 -2 A = -2 1 0 0 1 -2 1 0 0 1 -2 1 0 0 1 -2 V = 0.3717 -0.6015 -0.6015 -0.3717 -0.6015 0.3717 -0.3717 -0.6015 0.6015 0.3717 0.3717 -0.6015 -0.3717 -0.6015 0.6015 -0.3717 D = -3.6180 0 0 0 0 -2.6180 0 0 0 0 -1.3820 0 0 0 0 -0.3820 xf = 0.0402 0.0711 0.0975 -0.1140 b = 0.0732 0.1071 -0.0829 -0.0740 b = 0 0 0 0 x0 = 0.3717 -0.6015 0.6015 -0.3717 P = [p1_1, p1_2, p1_3, p1_4, p1_5] [p2_1, p2_2, p2_3, p2_4, p2_5] [p3_1, p3_2, p3_3, p3_4, p3_5] [p4_1, p4_2, p4_3, p4_4, p4_5] [p5_1, p5_2, p5_3, p5_4, p5_5] rnew = p1_1*r1 + p1_2*r2 + p1_3*r3 + p1_4*r4 + p1_5*r5 p2_1*r1 + p2_2*r2 + p2_3*r3 + p2_4*r4 + p2_5*r5 p3_1*r1 + p3_2*r2 + p3_3*r3 + p3_4*r4 + p3_5*r5 p4_1*r1 + p4_2*r2 + p4_3*r3 + p4_4*r4 + p4_5*r5 p5_1*r1 + p5_2*r2 + p5_3*r3 + p5_4*r4 + p5_5*r5 P = [p1_1, p1_2, 1/100, p1_4, p1_5] [p2_1, p2_2, 1/25, p2_4, p2_5] [p3_1, p3_2, 17/20, p3_4, p3_5] [p4_1, p4_2, 1/10, p4_4, p4_5] [p5_1, p5_2, 0, p5_4, p5_5] P = [87/100, p1_2, 1/100, p1_4, p1_5] [13/100, p2_2, 1/25, p2_4, p2_5] [ 0, p3_2, 17/20, p3_4, p3_5] [ 0, p4_2, 1/10, p4_4, p4_5] [ 0, p5_2, 0, p5_4, p5_5] P = 0.8700 0.0500 0.0100 0.0100 0.0100 0.1300 0.8300 0.0400 0.0200 0.0100 0 0.1200 0.8500 0.0500 0.0200 0 0 0.1000 0.9000 0.0300 0 0 0 0.0200 0.9300 r = 0.2000 0.2000 0.2000 0.2000 0.2000 ans = 0.1900 0.2060 0.2080 0.2060 0.1900 ans = 0.1473 0.2138 0.2552 0.2532 0.1305 ans = 0.1300 0.2051 0.2763 0.3022 0.0864 r = 0.2000 0.2000 0.2000 0.2000 0.2000 V = 0.1584 0.0961 -0.2687 0.2313 -0.1712 -0.4659 -0.1106 -0.4239 0.2112 -0.2874 0.7295 -0.6165 -0.5711 -0.1169 -0.2996 -0.4724 0.7624 -0.6246 -0.8091 -0.1262 0.0503 -0.1314 -0.1785 0.4834 0.8845 D = 0.7424 0 0 0 0 0 0.8140 0 0 0 0 0 1.0000 0 0 0 0 0 0.8965 0 0 0 0 0 0.9271 r100 = 0.1300 0.2051 0.2763 0.3022 0.0864 D = 0.7424 0 0 0 0 0 0.8140 0 0 0 0 0 1.0000 0 0 0 0 0 0.8965 0 0 0 0 0 0.9271 LambdaInf = 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 Pinf = 0.1300 0.1300 0.1300 0.1300 0.1300 0.2051 0.2051 0.2051 0.2051 0.2051 0.2763 0.2763 0.2763 0.2763 0.2763 0.3022 0.3022 0.3022 0.3022 0.3022 0.0864 0.0864 0.0864 0.0864 0.0864 rinf = 0.1300 0.2051 0.2763 0.3022 0.0864 [Terse] Diagnostic logged (2024-10-11 19:45:00): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_b151ce0f-dabc-4d50-80f5-56835d61071a.png [Terse] Diagnostic logged (2024-10-11 19:45:01): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_9537ce68-ed38-47fb-8ec1-4ccb893bcc6c.png [Terse] Diagnostic logged (2024-10-11 19:45:01): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_bf27decd-e901-42c9-af83-ec901f02e47a.png [Terse] Diagnostic logged (2024-10-11 19:45:02): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_7b23d5bc-40b2-46c4-8bc9-e380c0ed2379.png [Terse] Diagnostic logged (2024-10-11 19:45:02): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_981c7a89-817f-402b-ae25-e8a2b0c6267d.png .>> Running LinearSystemsSoln.mlx LinearSystem = y + z == -1 y - 2*z == 2 a*x + b*y + c*z == d MySltn = "(-3.9,0,-1)" x = -4 y = 0 z = -1 MySltn = "(-3.9,0,-1)" matrix([[a1_1, a1_2, a1_3], [a2_1, a2_2, a2_3], [a3_1, a3_2, a3_3]])*matrix([[x1], [x2], [x3]]) == matrix([[b1], [b2], [b3]]) Ax = a1_1*x1 + a1_2*x2 + a1_3*x3 a2_1*x1 + a2_2*x2 + a2_3*x3 a3_1*x1 + a3_2*x2 + a3_3*x3 eqs = a1_1*x1 + a1_2*x2 + a1_3*x3 == b1 a2_1*x1 + a2_2*x2 + a2_3*x3 == b2 a3_1*x1 + a3_2*x2 + a3_3*x3 == b3 matrix([[a1_1, a1_2, a1_3], [a2_1, a2_2, a2_3], [a3_1, a3_2, a3_3]])*matrix([[x1], [x2], [x3]]) == matrix([[b1], [b2], [b3]]) Ab = [a1_1, a1_2, a1_3, b1] [a2_1, a2_2, a2_3, b2] [a3_1, a3_2, a3_3, b3] RowReducedForm = [1, 0, 0, c1] [0, 1, 0, c2] [0, 0, 1, c3] x == 0 y == 0 z == 2 ReducedRowEchelonForm = [1, 1/2, 0, 0] [0, 0, 1, 0] [0, 0, 0, 1] A = [ 4, -1, 1/2] [1/2, 1/10, -1/2] [ 1, 4, -1/2] C = [ 13/34, 5/17, 3/34] [-5/102, -5/17, 25/102] [ 19/51, -30/17, 7/51] D = [13/60, 1/6, 1/20] [-1/36, -5/18, 1/4] [19/90, -17/9, 1/10] ans = [30/17, 10/17, 3/17] [ 0, 1, 0] [ 0, 0, 1] ans = [1, 0, 0] [0, 1, 0] [0, 0, 1] b = -2 1 -3 x = -5/12 -35/36 -47/18 Correct! ans = -2 1 -3 1. Write A and I together as a single augmented matrix matrix([[1/2, 2, 1, 1, 0, 0], [1, 2, -1, 0, 1, 0], [-1, 0, -4, 0, 0, 1]]) A = matrix([[2, 2, 1], [6, 2, 3], [3, 9, 1]]) DetA = 4 |A| = 0 so the matrix is not invertible. |B| = -1 so the matrix is invertible. |C| = -9 so the matrix is invertible. A = [1, 2, 3] [4, 5, 6] [8, 9, 10] B = [1, 1, 1] [1, 0, 0] [0, 0, 1] C = [ 1, 1/2, -1] [ 0, 2, 1] [-4, 1, 1] Ainv = [Inf, 0, 0] [ 0, Inf, 0] [ 0, 0, Inf] Binv = [0, 1, 0] [1, -1, -1] [0, 0, 1] Cinv = [-1/9, 1/6, -5/18] [ 4/9, 1/3, 1/9] [-8/9, 1/3, -2/9] x = 1 -1/2 1/2 x = -4 5/2 7/2 matrix([[2, 1], [1, -1]])matrix([[x], [y]]) = matrix([[2], [10]]) |A| = -3 which is nonzero. This implies that the system has a unique solution. matrix([[2, 1, 4], [1, 0, -1], [-3, 2, -1]])matrix([[x], [y], [z]]) = matrix([[2], [10], [11]]) |A| = 16 which is nonzero. This implies that the system has a unique solution. matrix([[-1, 6, 3, -7, -7, 2, -4, 4, -8, -7, 9, 3, -1, 6, 5], [-9, 3, 1, 1, 3, 6, -5, -7, -3, -8, 5, -6, -2, 6, -6], [8, -8, 5, 0, -3, -2, 1, 9, 6, -7, 2, -2, 2, 5, 10], [-6, -8, 5, 8, 4, -5, -8, -6, 4, -6, -3, -6, 5, 5, 1], [-8, 6, 6, 6, 5, -8, -1, -4, -7, -6, -6, 6, -1, -7, 4], [-3, 9, -4, 5, 2, 6, -7, 6, -7, -3, 3, 8, -1, 4, -9], [0, 1, 4, -8, 5, -5, -7, 0, -8, -3, 10, -2, -7, 0, 7], [-7, -7, 2, -8, -5, -2, 6, 6, -9, -5, -6, 4, -9, -5, 5], [10, 7, -2, -8, 5, 2, -4, -2, -1, -4, -4, -4, -4, -8, -7], [-3, -3, -8, 6, 10, -5, 3, -4, 4, 8, -2, 1, -3, 7, 1], [-4, -4, 6, 9, 8, 3, 10, -9, 5, 5, -8, 7, 4, -6, -3], [-8, 5, -3, 4, -8, 0, -1, 4, 1, 2, 4, 2, 10, -6, 1], [-4, -9, 3, -7, -2, -6, 4, -1, -7, -6, -1, -3, 9, 4, -2], [-9, -9, 5, 5, -2, 6, 6, 0, 3, -5, 10, -4, 0, 8, -1], [1, 4, -7, -7, 4, -7, -1, 3, -7, -8, -1, 0, -5, 1, -6]])matrix([[x1], [x2], [x3], [x4], [x5], [x6], [x7], [x8], [x9], [x10], [x11], [x12], [x13], [x14], [x15]]) = matrix([[-4], [-9], [9], [4], [9], [-6], [9], [6], [2], [-1], [-4], [6], [-5], [-8], [6]]) ans = -2.6845e+15 Correct! InvA = Columns 1 through 7 1.0290 -1.3817 -0.5778 0.5648 0.4502 0.1879 -0.4366 -1.0207 1.3672 0.5859 -0.6267 -0.3722 -0.1941 0.3948 -1.5182 1.9265 0.8207 -0.8447 -0.5970 -0.2606 0.6297 0.9837 -1.3768 -0.5860 0.5568 0.5109 0.2103 -0.4539 -0.5505 0.7192 0.3519 -0.3252 -0.2064 -0.0528 0.2552 0.4491 -0.5179 -0.2048 0.2181 0.1776 0.1155 -0.1903 -0.0515 0.0530 0.0358 -0.0950 0.0422 -0.0231 -0.0159 -1.3528 1.6760 0.7671 -0.7624 -0.5074 -0.1735 0.5393 -1.0358 1.4195 0.6157 -0.5438 -0.5387 -0.2439 0.4544 -0.8224 0.9969 0.4026 -0.4634 -0.3186 -0.1230 0.3386 0.6032 -0.8060 -0.3524 0.3403 0.2225 0.0935 -0.1989 0.4994 -0.5676 -0.2465 0.3029 0.0783 0.0646 -0.1463 0.0587 -0.0479 0.0076 0.0137 0.0245 0.0294 -0.0208 -0.6468 0.8944 0.3817 -0.3859 -0.2769 -0.1159 0.2482 0.6035 -0.7094 -0.2675 0.2955 0.2715 0.0969 -0.2401 Columns 8 through 14 0.1631 1.7454 1.0243 -0.5058 0.1003 0.2645 1.1959 -0.2238 -1.7145 -1.0181 0.4480 -0.1446 -0.2483 -1.1789 -0.3096 -2.5478 -1.5673 0.6947 -0.2572 -0.3633 -1.6973 0.1714 1.7471 1.0462 -0.5583 0.1118 0.2661 1.2397 -0.0890 -0.8132 -0.4546 0.2632 -0.0428 -0.0873 -0.6076 0.1230 0.8158 0.5013 -0.2057 0.0829 0.1366 0.4931 -0.0237 -0.0404 -0.0085 -0.0088 -0.0169 0.0249 0.0035 -0.2296 -2.1343 -1.2737 0.5550 -0.1632 -0.2833 -1.4576 -0.2051 -1.8709 -1.1329 0.6035 -0.1130 -0.3565 -1.2717 -0.1579 -1.3331 -0.7843 0.3274 -0.1320 -0.1694 -0.8986 0.0834 0.9756 0.5689 -0.2500 0.0999 0.1207 0.7193 0.0885 0.6207 0.3666 -0.0635 0.0714 0.0317 0.4249 0.0006 0.1290 0.0912 -0.0139 0.0515 0.0745 0.0372 -0.1432 -1.1623 -0.6608 0.2995 -0.1345 -0.1507 -0.7861 0.1372 1.0240 0.6632 -0.2877 0.1118 0.1630 0.6373 Column 15 -0.8683 0.8331 1.2299 -0.9104 0.3840 -0.4665 0.0109 1.0183 1.0229 0.5921 -0.4384 -0.2192 -0.0906 0.5529 -0.5632 Correct! xSoln1 = -5.6562 5.1708 7.6654 -5.6700 2.9361 -3.1511 -0.3211 7.1254 6.5997 3.6620 -2.8249 -1.6809 -0.5021 2.6974 -2.8172 Correct! xSoln2 = -5.6562 5.1708 7.6654 -5.6700 2.9361 -3.1511 -0.3211 7.1254 6.5997 3.6620 -2.8249 -1.6809 -0.5021 2.6974 -2.8172 Correct! ans = 1.0e-13 * -0.0533 0.0711 0.1421 -0.1510 0.0089 -0.0444 -0.0028 0.1155 0.1599 0.0799 -0.0622 -0.0089 -0.0078 0.0444 -0.0488 C = [a, c, 1] [2, 3, b] [2, 1, r] d = p q 1 x = x1 x2 x3 LinearSystem = x3 + a*x1 + c*x2 == p 2*x1 + 3*x2 + b*x3 == q 2*x1 + x2 + r*x3 == 1 Correct! condition = 2*b*c - a*b + 3*a*r - 2*c*r - 4 ~= 0 Correct! Cinv = [ (b - 3*r)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4), (c*r - 1)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4), -(b*c - 3)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4)] [-(2*(b - r))/(a*b - 2*b*c - 3*a*r + 2*c*r + 4), -(a*r - 2)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4), (a*b - 2)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4)] [ 4/(a*b - 2*b*c - 3*a*r + 2*c*r + 4), (a - 2*c)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4), -(3*a - 2*c)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4)] Correct! xSoln1 = (p*(b - 3*r))/(a*b - 2*b*c - 3*a*r + 2*c*r + 4) - (b*c - 3)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4) + (q*(c*r - 1))/(a*b - 2*b*c - 3*a*r + 2*c*r + 4) (a*b - 2)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4) - (2*p*(b - r))/(a*b - 2*b*c - 3*a*r + 2*c*r + 4) - (q*(a*r - 2))/(a*b - 2*b*c - 3*a*r + 2*c*r + 4) (4*p)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4) - (3*a - 2*c)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4) + (q*(a - 2*c))/(a*b - 2*b*c - 3*a*r + 2*c*r + 4) Correct! xSoln2 = -(q + b*c - b*p + 3*p*r - c*q*r - 3)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4) (2*q + a*b - 2*b*p + 2*p*r - a*q*r - 2)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4) (2*c - 3*a + 4*p + a*q - 2*c*q)/(a*b - 2*b*c - 3*a*r + 2*c*r + 4) Correct! ans = 0 0 0 [Terse] Diagnostic logged (2024-10-11 19:45:04): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_33989729-3233-410e-a6af-6f5982095258.png [Terse] Diagnostic logged (2024-10-11 19:45:08): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_fd1a2cde-2cb6-4c49-ad9a-a2c5623e308e.png .>> Running LinearSystemsApplicationsSoln.mlx X = 1.0000 2.2760 1.0000 3.8254 1.0000 3.8662 1.0000 4.1008 1.0000 4.2984 1.0000 4.8032 1.0000 5.0056 1.0000 5.5035 1.0000 5.6398 1.0000 5.7629 1.0000 5.8833 1.0000 5.9642 1.0000 6.0672 1.0000 6.3837 1.0000 6.3936 1.0000 6.5693 1.0000 7.0767 1.0000 8.3514 1.0000 9.5803 1.0000 11.1717 w = 1.4000 0.8000 y_approx = 3.2208 4.4603 4.4929 4.6806 4.8387 5.2426 5.4045 5.8028 5.9119 6.0103 6.1066 6.1713 6.2538 6.5070 6.5149 6.6554 7.0613 8.0811 9.0643 10.3373 A = 20.0000 118.5233 118.5233 781.6855 b = 64.8346 403.1110 w = 1.8300 0.2382 A = [0, R_1 + R_2, 0, 0, 0] [0, 0, R_3, R_4, 0] [0, 0, 0, R_4, R_5] [1, -1, 1, -1, 0] [1, -1, 0, 0, -1] b = V_1 -V_2 V_1 0 0 A = 0 110 0 0 0 0 0 10 1000 0 0 0 0 1000 330 1 -1 1 -1 0 1 -1 0 0 -1 b = 1.5000 -1.5000 1.5000 0 0 I = 0.0224 0.0136 -0.0102 -0.0014 0.0088 Correct! A = [0, R_1 + R_2, 0, 0, 0] [0, 0, R_3, R_4, 0] [0, 0, 0, R_4, R_5] [1, -1, 1, -1, 0] [1, -1, 0, 0, -1] b = V_1 -V_2 V_1 0 0 Isym = (R_1*R_3*V_1 + R_1*R_4*V_1 + R_2*R_3*V_1 + R_1*R_4*V_2 + R_2*R_4*V_1 + R_2*R_4*V_2 + R_3*R_4*V_1 + R_3*R_5*V_1 + R_4*R_5*V_1)/((R_1 + R_2)*(R_3*R_4 + R_3*R_5 + R_4*R_5)) V_1/(R_1 + R_2) -(R_4*V_1 + R_4*V_2 + R_5*V_2)/(R_3*R_4 + R_3*R_5 + R_4*R_5) (R_3*V_1 - R_5*V_2)/(R_3*R_4 + R_3*R_5 + R_4*R_5) (R_3*V_1 + R_4*V_1 + R_4*V_2)/(R_3*R_4 + R_3*R_5 + R_4*R_5) Ifunc = function_handle with value: @(R_1,R_2,R_3,R_4,R_5,V_1,V_2)[(R_1.*R_3.*V_1+R_1.*R_4.*V_1+R_2.*R_3.*V_1+R_1.*R_4.*V_2+R_2.*R_4.*V_1+R_2.*R_4.*V_2+R_3.*R_4.*V_1+R_3.*R_5.*V_1+R_4.*R_5.*V_1)./((R_1+R_2).*(R_3.*R_4+R_3.*R_5+R_4.*R_5));V_1./(R_1+R_2);-(R_4.*V_1+R_4.*V_2+R_5.*V_2)./(R_3.*R_4+R_3.*R_5+R_4.*R_5);(R_3.*V_1-R_5.*V_2)./(R_3.*R_4+R_3.*R_5+R_4.*R_5);(R_3.*V_1+R_4.*V_1+R_4.*V_2)./(R_3.*R_4+R_3.*R_5+R_4.*R_5)] Ifunc = function_handle with value: @(R_1,R_2,R_3,R_4,R_5,V_1,V_2)[(R_1.*R_3.*V_1+R_1.*R_4.*V_1+R_2.*R_3.*V_1+R_1.*R_4.*V_2+R_2.*R_4.*V_1+R_2.*R_4.*V_2+R_3.*R_4.*V_1+R_3.*R_5.*V_1+R_4.*R_5.*V_1)./((R_1+R_2).*(R_3.*R_4+R_3.*R_5+R_4.*R_5));V_1./(R_1+R_2);-(R_4.*V_1+R_4.*V_2+R_5.*V_2)./(R_3.*R_4+R_3.*R_5+R_4.*R_5);(R_3.*V_1-R_5.*V_2)./(R_3.*R_4+R_3.*R_5+R_4.*R_5);(R_3.*V_1+R_4.*V_1+R_4.*V_2)./(R_3.*R_4+R_3.*R_5+R_4.*R_5)] Correct! [Terse] Diagnostic logged (2024-10-11 19:45:10): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_bedb2e0a-48e7-4d78-8150-4f3cd688acdb.png .>> Running MatrixOperationsSoln.mlx Matrices have been (re)defined. A = [7, 4, 1, 5, 9, 3] [4, 6, 5, 8, 4, 3] [6, 6, 1, 9, 4, 7] A = matrix([[7, 4, 1, 5], [4, 6, 5, 8]]) B = matrix([[1, 6, 2, 6], [1, 1, 4, 8]]) A - B = matrix([[6, -2, -1, -1], [3, 5, 1, 0]]) D = matrix([[1, 6, 2, 6, 6], [1, 1, 4, 8, 4]]) A = matrix([[7, 4], [4, 6]]) c = 4 cA = matrix([[28, 16], [16, 24]]) A = matrix([[7, 4], [4, 6], [6, 6]]) v = matrix([[2], [8]]) Av = matrix([[46], [56], [60]]) u = matrix([[2], [8], [1], [9]]) A = matrix([[7, 4, 1], [4, 6, 5]]) B = matrix([[1, 6], [1, 1], [6, 4]]) AB = matrix([[17, 50], [40, 50]]) C = matrix([[8, 5, 5], [9, 6, 2], [7, 3, 9]]) A = matrix([[7, 4, 1, 5], [4, 6, 5, 8], [6, 6, 1, 9], [4, 5, 8, 6]]) D = matrix([[5, 0, 0, 0], [0, 8, 0, 0], [0, 0, 9, 0], [0, 0, 0, 6]]) I = matrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) A = matrix([[7, 4, 1, 5], [4, 6, 5, 8], [6, 6, 1, 9]]) I = matrix([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]) AI = matrix([[7, 4, 1, 5], [4, 6, 5, 8], [6, 6, 1, 9]]) C = 1 2 3 4 Correct! R = 4 2 2 9 1 3 Correct! P = 1 -2 1 -1 2 5 RpP = 5 0 3 8 3 8 Correct! Error: Arrays have incompatible sizes for this operation. RC = 10 16 29 40 10 14 Correct! RP = 4 -4 2 -9 2 15 Correct! I = 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 Correct! v = 7 1 3 1 Correct! D = 7 0 0 0 0 1 0 0 0 0 3 0 0 0 0 1 Correct! ID = 7 0 0 0 0 1 0 0 0 0 3 0 0 0 0 1 Correct! H = [H1_1, H1_2] [H2_1, H2_2] [H3_1, H3_2] Correct! G = [a, 1] [b, -3] Correct! HG = [H1_1*a + H1_2*b, H1_1 - 3*H1_2] [H2_1*a + H2_2*b, H2_1 - 3*H2_2] [H3_1*a + H3_2*b, H3_1 - 3*H3_2] Correct! Rsub = Columns 1 through 13 90 128 134 111 130 58 58 93 129 172 156 97 129 114 135 165 121 132 70 87 71 58 94 141 105 90 106 100 138 139 199 75 44 46 57 71 182 115 99 143 105 71 176 164 52 30 57 68 70 165 159 136 185 211 206 198 168 98 52 47 42 77 142 177 140 81 97 128 157 178 207 205 178 152 128 136 146 141 123 90 78 143 163 104 129 138 175 198 206 206 191 Columns 14 through 21 106 88 75 81 64 52 157 163 80 72 116 88 77 85 183 166 92 41 112 106 32 99 203 171 91 75 133 145 83 115 188 122 91 80 129 144 177 101 130 117 93 76 127 118 84 112 211 84 108 106 147 114 95 104 182 89 Correct! Correct! Correct! Correct! Correct! [Terse] Diagnostic logged (2024-10-11 19:45:11): Figure saved to: --> /tmp/2fd14c59-d2f3-4667-95f8-7866a8dbd397/Figure_8871ecb2-3c79-4946-a3ee-3daf330f6fcb.png . Done SolnSmokeTests __________