User Tools

Site Tools


gibson:teaching:spring-2015:math445:examplelab

====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

gibson:teaching:spring-2015:math445:examplelab [2015/01/19 12:33]
gibson created
gibson:teaching:spring-2015:math445:examplelab [2015/01/19 12:35] (current)
gibson
Line 33: Line 33:
 ans =  7.38905609893065 ans =  7.38905609893065
  
->> % Problem 2: Evaluate 0 < < 2 in Matlab and explain the result. +>> % Problem 2: Evaluate 0 < < 2 in Matlab and explain the result. 
->> ​< 2+>> ​< 2
 ans = ans =
      1      1
->> % For the expression 0 < < 2, Matlab returns 1 because... +>> % For the expression 0 < < 2, Matlab returns 1 because... 
->> %   the first comparison 0 < is a logical expression that evaluates to 1 (true) +>> %   the first comparison 0 < is a logical expression that evaluates to 1 (true) 
->> %   replacing ​0 < 2 with 1 leaves ​1 < 2, another logical expression that evaluates to 1 (true)+>> %   so < 5 < 2 reduces to 1 < 2, another logical expression that evaluates to 1 (true)
 </​code>​ </​code>​
gibson/teaching/spring-2015/math445/examplelab.1421699632.txt.gz · Last modified: 2015/01/19 12:33 by gibson