mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-11-19 06:14:28 +01:00
6 lines
143 B
Matlab
6 lines
143 B
Matlab
%funkcja zwracajaca wartosc i pochodna z zadania 1
|
|
function [y,dy] = fun (x)
|
|
y = 1.4*sin(x)-exp(x)+6*(x)-0.5;
|
|
dy = 1.4*cos(x)-exp(x) +6;
|
|
end
|