FreeMat
1 program
Added 2026-02-06T14:22:34Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: —
Provenance: commit c6d483927f · authored 2026-02-06T15:23:24+01:00 · agent claude-code · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Fibonacci Sequence
Provenance: commit c6d483927f · authored 2026-02-06T15:23:24+01:00 · agent claude-code · model sonnet · WebSearch disabled
function f = fibonacci(n)
% Compute the nth Fibonacci number
if (n == 0)
f = 0;
elseif (n == 1)
f = 1;
else
f = fibonacci(n-1) + fibonacci(n-2);
endif
endfunction
% Compute and display first 15 Fibonacci numbers
for i = 0:14
printf('F(%d) = %d\n', i, fibonacci(i));
end