Consider the function:
The outputs of this function are fed as domain to another function:
Given the values of a, b, c, and a limit n, find the all values of
, so that
and
. For example if
, and
, the only integer values of x that will satisfy the above criteria are:
Please present the final output as a unique row vector sorted ascending.
-----------------
NOTE: Some MATLAB's built-in math functions may only give approximate values.
Solution Stats
Problem Comments
5 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers2
Suggested Problems
-
Maximum running product for a string of numbers
2253 Solvers
-
504 Solvers
-
129 Solvers
-
first step for Huffman Coding (easy)
41 Solvers
-
73 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
What is "n"? ... and what are we supposed to calculate?
Hi William,
`n` is the upper limit of `y`. We are to calculate all integer values of `x` that will make `z = 0`.
Oh, I see. On my screen, the statement of the problem is not displaying properly, so that half of it is missing until the cursor is placed on a visible line and scrolled down.
Is this Cody glitch, because all the problems I'm viewing are showing only a few lines of display?
@William, @Ramon
Cody UI has been facing some problems since last few days, where you have to manually scroll down to see the rest of the content (problem statement, test case etc).
I have already reported this to the Cody Team and they are working on a fix. I will update the community accordingly.