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
-
It dseon't mettar waht oedrr the lrettes in a wrod are.
2100 Solvers
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1996 Solvers
-
631 Solvers
-
Determine Whether an array is empty
811 Solvers
-
Split bread like the Pharaohs - Egyptian fractions and greedy algorithm
96 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.