Post Reply 
Sqrt of matrix
04-12-2022, 12:39 PM
Post: #10
RE: Sqrt of matrix
(04-11-2022 08:35 AM)Amer7 Wrote:  now Is there a command to automatically find SQRT values of 1,9,16 ?
So the answer ends up being a matrix with values 1, 3, 4 ?

HOME> [[1, 9, 16]] .^ 0.5      → [[1, 3, 4]]

This has an advantage by not going thru CAS, which may make sqrt inaccurate.

HOME> M1 := [[0.398, 0.571]]
HOME> M1 .^ 0.5

[[0.630872411824, 0.755645419493]]

HOME> CAS("apply(sqrt, M1)")

[[0.630872411823, 0.755645419492]]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Sqrt of matrix - Amer7 - 04-11-2022, 08:35 AM
RE: Sqrt of matrix - StephenG1CMZ - 04-11-2022, 12:43 PM
RE: Sqrt of matrix - parisse - 04-11-2022, 01:09 PM
RE: Sqrt of matrix - roadrunner - 04-11-2022, 01:12 PM
RE: Sqrt of matrix - parisse - 04-11-2022, 04:13 PM
RE: Sqrt of matrix - roadrunner - 04-12-2022, 12:58 AM
RE: Sqrt of matrix - Amer7 - 04-11-2022, 04:24 PM
RE: Sqrt of matrix - StephenG1CMZ - 04-11-2022, 06:07 PM
RE: Sqrt of matrix - Amer7 - 04-11-2022, 06:24 PM
RE: Sqrt of matrix - StephenG1CMZ - 04-12-2022, 01:50 PM
RE: Sqrt of matrix - Albert Chan - 04-12-2022 12:39 PM



User(s) browsing this thread: 1 Guest(s)