Given a polynomial p known to have positive integer coefficients, deduce the values of the coefficients.
p = @(x) x^2 + 2*x + 15;
c = guess_the_coefficients(p);
c = [1 2 15]
Used to thought this function was banned. never went to that direction. nice touch!
@Bainhome, Cody banned the reverse of this function because it could be used as a cheat to unfairly reduce Cody score. I do believe the function used cannot be in such manner...so it is not banned and free for your use. Enjoy!. :)
@Bainhome, Cody banned the reverse of this function because it could be used as a cheat to unfairly reduce Cody score. I do believe the other function cannot be used for such purpose...so it is not banned and free for your use. Enjoy!. :)
This only works for coefficients<100.
Extract leading non-zero digit
Count from 0 to N^M in base N.
Find Rotated Substring
More luck than brains
Implement simple rotation cypher
Number of 1s in the Binary Representation of a Number
Triangle Numbers Below N
Pull the variable y_correct from the Caller's Workspace
Determine if a Given Number is a Triangle Number
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office