Problem 3008. Carnot cycle
I think their is a problem with the test case 3.
I guess you're right
T1 and T2 do not necessarily imply x(1) and x(2).the higher temp. is always in den.
I have used Max(x) and Min(x) ... then also the test case does not satisfy...
The problem is the isequal() without any tolerance...
The conversion between Kelvin and Celsius is 273.15, not 273.
Read this before you try this problem: the author is using 273 for the conversion between Celsius and Kelvin, the two temperatures are not necessarily ordered, and the shown formula is correct although it is not in its most computationally realiable form. Good luck.
Sigh...a little challenge with tolerance? :)
haha~just finish it as fast as I can, didn't have time realizing how stupid this answer is. I saw your answer by the way, it just avoid the tolerance issue with avoiding obvious subtract, brilliant move!
Problem Recent Solvers41
Project Euler: Problem 6, Natural numbers, squares and sums.
Create the following sequence : 0 1 1 4 9 25 64 169 ...
Determine the Anti-diagonal of a Magic Square
More from this Author4
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!