I wanted to use : z = feval(symengine,'numlib::fibonacci',10)
to get the 10th element for example but CODY returns:
Could not check out Symbolic Math Toolbox license.
pas de chance!
You should add test cases where x or x+1 equals an even fibonacci number (either small or large).
Nice problem. I always have problem with big numbers.
I solved the problem until x = 4000000 but x = 97455000 it gives me an error of exceeding the memory(overflow) because the number is too large.
y is it not working when it even works on octave and get results in a sec
While evaluating the solution, the server encountered an error caused by temporary unavailability of MATLAB Service. Wait a few minutes for the MATLAB Service to return, and then rescore.
those test numbers are too big
it is correct but by server error its not showing
test for cheating
OK, I gamed this one so it only works up to about 1 billion. I wanted to see everyone else's interesting solutions.
this trick (c.f. Solution 26456) works only for these particular test cases, it would fail for example with euler002(6)...
Return the Fibonacci Sequence
Return unique values without sorting
Crop an Image
Project Euler: Problem 5, Smallest multiple
Project Euler: Problem 9, Pythagorean numbers
Steal, Share, or Catch: Tournament of Champions
Find perfect placement of non-rotating dominoes (easier)
Project Euler: Problem 6, Natural numbers, squares and sums.
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