MATLAB Answers

How to put square root numbers into Matlab?

7 views (last 30 days)
Ryan
Ryan on 7 Jun 2021
Commented: Ryan on 7 Jun 2021
How do I put: 7 sqrt(2)/2 so that it equals 4.9497?

Accepted Answer

Aparajith Raghuvir
Aparajith Raghuvir on 7 Jun 2021
Hello Ryan,
There are 2 ways to go about it. One possible way is:
7 * sqrt(2) / 2
Another possible and more general way to compute any x to the power of y is
7 * 2^0.5 / 2
Hope this helps.
Thanks,
Aparajith

More Answers (0)

Products


Release

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!