example of taking derivative (pls stop using inline)

This commit is contained in:
LinlyBoi
2023-05-07 21:05:59 +03:00
parent 4f89e5bf16
commit 988321bfc3

7
Help.m Normal file
View File

@@ -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)