Learn about the Octave commands sqrtA and expA where A is a

Learn about the Octave commands sqrt(A) and exp(A) where A is a matrix. Create a small matrix, try these commands, and discuss your results

Solution

>> A=[1 2;2 1;3 -4]

A =

1 2
2 1
3 -4

>> sqrt(A)

ans =

1.0000 1.4142
1.4142 1.0000
1.7321 0 + 2.0000i

>> exp(A)

ans =

2.7183 7.3891
7.3891 2.7183
20.0855 0.0183

>> B=[3 5 6;1 6 3;4 -1 -5]

B =

3 5 6
1 6 3
4 -1 -5

>> sqrt(B)

ans =

1.7321 2.2361 2.4495
1.0000 2.4495 1.7321
2.0000 0 + 1.0000i 0 + 2.2361i

>> exp(B)

ans =

20.0855 148.4132 403.4288
2.7183 403.4288 20.0855
54.5982 0.3679 0.0067

>>

Learn about the Octave commands sqrt(A) and exp(A) where A is a matrix. Create a small matrix, try these commands, and discuss your resultsSolution>> A=[1

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site