how to do the coding with plus minus sign infront of square root?
14 views (last 30 days)
Show older comments
amanina abdul rahman
on 15 Oct 2015
Answered: Walter Roberson
on 17 Oct 2015

1 Comment
Walter Roberson
on 15 Oct 2015
Please post a larger version of the image. Some of us are no longer young and can no longer make out fine detail.
Accepted Answer
Walter Roberson
on 17 Oct 2015
T = sqrt( 4 * I(2)^2 * I(3)^2 - E^2 );
first_result = -T / E;
second_result = +T / E;
If you prefer and if E is a scalar then
results = [-1 1] * sqrt( 4 * I(2)^2 * I(3)^2 - E^2 ) / E;
I am guessing about what the slash and subscript and superscript 2 and 3 are representing.
0 Comments
More Answers (1)
Geoff Hayes
on 17 Oct 2015
amanina - the plus/minus means that you will have two values to the above: one which is positive (plus) and one which is negative (minus). See https://en.wikipedia.org/wiki/Plus-minus_sign for details.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!