If using C++, I'd like to add that the built-in std::max() function in the <algorithm> header file has a variety of forms. See the "Possible implementation" ... ... <看更多>
Hence the correct maximum value is 6. ... What's the max and min of sine function? ( Recall that sin2θ=2(sinθ)(cosθ)). Max f = 6 and min f = ... ... <看更多>