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.
Prime factor digits
Return unique values without sorting
Make a random, non-repeating vector.
Sophie Germain prime
Pig Latin to English Translator
Recurring Cycle Length (Inspired by Project Euler Problem 26)
Solve the Sudoku Row
Number of 1s in the Binary Representation of a 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