# Retaining the property of Symmetric?

**URL:** <https://discourse.julialang.org/t/retaining-the-property-of-symmetric/127437>\
**Category:** General Usage\
**Tags:** question, jump, linearalgebra, symmetric\
**Created:** [March 28, 2025, 4:47am UTC](https://discourse.julialang.org/t/retaining-the-property-of-symmetric/127437 "2025-03-28T04:47:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![WalterMadelim](https://avatars.discourse-cdn.com/v4/letter/w/3e96dc/32.png) [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Post date:** [March 28, 2025, 7:13am UTC](https://discourse.julialang.org/t/retaining-the-property-of-symmetric/127437/4 "2025-03-28T07:13:03Z")

</div>

The current behavior is

```julia
julia> S
3×3 Symmetric{Int64, Matrix{Int64}}:
  0 -8 -2
 -8 -2 3
 -2 3 8

julia> S^2
3×3 Symmetric{Int64, Matrix{Int64}}:
  68 10 -40
  10 77 34
 -40 34 77

julia> S * S
3×3 Matrix{Int64}:
  68 10 -40
  10 77 34
 -40 34 77

julia> transpose(S) * S
3×3 Matrix{Int64}:
  68 10 -40
  10 77 34
 -40 34 77

julia> S .^ 2
3×3 Matrix{Int64}:
  0 64 4
 64 4 9
  4 9 64

```

---

_[View the full topic](https://discourse.julialang.org/t/retaining-the-property-of-symmetric/127437)._
