Skip to content

Commit

Permalink
Update power.md
Browse files Browse the repository at this point in the history
  • Loading branch information
adtzlr committed Sep 27, 2023
1 parent a938350 commit 1dd67ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/api/functions/power.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ invC3 = C**(-3)
Eye = C**0
```

**Warning**: Don't use `C**(1/2)` because in Fortran an integer division, e.g. `1/2`, gives an integer `0` and this function will return the identity tensor instead of the square root.
{: .warning }
> Don't use `C**(1/2)` because in Fortran an integer division, e.g. `1/2`, gives an integer `0` and this function will return the identity tensor instead of the square root.
For the evaluation of the tensorial square root, use [sqrt](squareroot.md) instead.

0 comments on commit 1dd67ca

Please sign in to comment.