32 8 evaluate the logical expressions evaluate the following

3^2 >8 evaluate the logical expressions
evaluate the following logical expressions without using Matlab 3^2 > 8 -5

Solution

1) The first statement is TRUE

3^2 > 8

But the value of 3^2 = 9

( 9 > 8), hence the logical statement will evalute to 1

2) The second expression will return 0

-5 < -3 < -1

First the ( -5 < -3) will be evalute, since the statement is correct since the result is 1

Hence 1 < -1

Therefore, the given statement will return a zero

3^2 >8 evaluate the logical expressions evaluate the following logical expressions without using Matlab 3^2 > 8 -5 Solution1) The first statement is TRUE

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site