From 988321bfc32d9649554f2f402b03f397308cc81f Mon Sep 17 00:00:00 2001 From: LinlyBoi Date: Sun, 7 May 2023 21:05:59 +0300 Subject: [PATCH] example of taking derivative (pls stop using inline) --- Help.m | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Help.m diff --git a/Help.m b/Help.m new file mode 100644 index 0000000..641bce0 --- /dev/null +++ b/Help.m @@ -0,0 +1,7 @@ +clear,clc +f = @(x) x.^2 + 3*x - 1 + 5*x.*sin(x); +pkg load symbolic +syms x; +ff = f(x); +% now calculate the derivative of the function +ffd = diff(ff, x)