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
-
Replace NaNs with the number that appears to its left in the row.
3061 Solvers
-
Back to basics 22 - Rotate a matrix
933 Solvers
-
Sum of first n terms of a harmonic progression
497 Solvers
-
Convert a vector into a number
614 Solvers
-
35 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.