refactor so it looks clean
This commit is contained in:
7
symbolic.m
Normal file
7
symbolic.m
Normal 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)
|
||||
Reference in New Issue
Block a user