# Matrix square root (Error)

**URL:** <https://discourse.julialang.org/t/matrix-square-root-error/22556>\
**Category:** General Usage\
**Tags:** package\
**Created:** [March 31, 2019, 12:21am UTC](https://discourse.julialang.org/t/matrix-square-root-error/22556 "2019-03-31T00:21:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![longemen3000](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/longemen3000/32/7298_2.png) [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Post date:** [March 31, 2019, 12:27am UTC](https://discourse.julialang.org/t/matrix-square-root-error/22556/2 "2019-03-31T00:27:08Z")

</div>

you can use just `sqrt` :

```julia
a = [1.0 -0.9; -0.9 1.0]
sqrt(a)
2×2 Array{Float64,2}:
  0.847316 -0.531089
 -0.531089 0.847316

```

I find [this post](https://discourse.julialang.org/t/status-of-exp-and-sqrt/4092) talking about that

---

_[View the full topic](https://discourse.julialang.org/t/matrix-square-root-error/22556)._
