Search for question
Question

16/01/2024, 04:00 Multiple definitions for Distributions, Linear Algebra and PlutoUI Combine all definitions into a single reactive cell using a `begin 1 begin 2 3 4 5 6 mediatb.blob.core.windows.net/media//65a59e77af9afb34f97b285c/questions/wild-computation-17_17053... end

using Linear Algebra using Distributions using PlutoUI 1 # using Plots #uncomment to plot things UndefVarError: `PlutoUI` not defined 1. top-level scope @Local: 1 1 PlutoUI.TableOfContents() ...no it's not filled. Sorry to disappoint. end block. https://mediatb.blob.core.windows.net/media//65a59e77af9afb34f97b285c/questions/wild-computation-17_1705352991485.h... 1/61 16/01/2024, 04:00 mediatb.blob.core.windows.net/media//65a59e77af9afb34f97b285c/questions/wild-computation-17_17053... Question 1 1 md""" 2 # Question 1 || | || https://mediatb.blob.core.windows.net/media//65a59e77af9afb34f97b285c/questions/wild-computation-17_1705352991485.h... 2/61 16/01/2024, 04:00 A | | | 1 md" 2 # A || || || mediatb.blob.core.windows.net/media//65a59e77af9afb34f97b285c/questions/wild-computation-17_17053... my_transf (generic function with 1 method) 1 function my_transf(A) 2 3 end 4 5 # Example usage return A + transpose (A) 1 matrix_A = [1 2 3; 4 5 6; 7 8 9] 1 result my_transf(matrix_A) https://mediatb.blob.core.windows.net/media//65a59e77af9afb34f97b285c/questions/wild-computation-17_1705352991485.h... 3/61 16/01/2024, 04:00 B 1 md""" 2 # B 11 11 11 eigprod (generic function with 1 method) 1 function eigprod (A::Matrix, i::Number, j::Number) 2 # Calculate eigenvalues and eigenvectors 3 eigenvals, eigenvecs eigen (A) 4 5 6 7 8 9 10 11 12 13 end 14 15 # Example usage # Extract the ith and jth eigenvectors vi = eigenvecs[:, i] vj = eigenvecs[:, j] mediatb.blob.core.windows.net/media//65a59e77af9afb34f97b285c/questions/wild-computation-17_17053... # Calculate the dot product dot_product dot (vi, vj) j_value return dot_product matrix_A = 2×2 Matrix{Int64}: 1 2 3 4 1 matrix_A = i_value = 1 1 i_value = 1 = 2 1 j_value 1 result = = = [1 2 3 4] = 2 eigprod (matrix_A, i_value, j_value) https://mediatb.blob.core.windows.net/media//65a59e77af9afb34f97b285c/questions/wild-computation-17_1705352991485.h... 4/61 16/01/2024, 04:00 C 1 md" 2 # C || || || ||| || || mediatb.blob.core.windows.net/media//65a59e77af9afb34f97b285c/questions/wild-computation-17_17053... 1 Enter cell code... https://mediatb.blob.core.windows.net/media//65a59e77af9afb34f97b285c/questions/wild-computation-17_1705352991485.h... 5/61