Skip to content

Instantly share code, notes, and snippets.

@ntakouris
Created June 15, 2021 13:21
Show Gist options
  • Save ntakouris/c6c1c5ff3b28c4a6ae20c0a64910f298 to your computer and use it in GitHub Desktop.
Save ntakouris/c6c1c5ff3b28c4a6ae20c0a64910f298 to your computer and use it in GitHub Desktop.
function y = f(x)
y = x.^4 * cos(x) - x.^2 * sin(x.^3);
end
x = -10:.01:10;
y = f(x);
plot(x, f(x))
min(y)
max(y)
roots(chebfun(f,[-10, 10]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment