Mercurial > repos > public > sbplib
comparison diffSymfun.m @ 599:489bea7fc33f feature/grids
Add some functions to make symbolic life easier
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 26 Sep 2017 15:38:25 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
598:f6ada1719420 | 599:489bea7fc33f |
---|---|
1 % Differentiates a symbolic function like diff does, but keeps the function as a symfun | |
2 function g = diffSymfun(f, varargin) | |
3 assertType(f, 'symfun'); | |
4 | |
5 args = argnames(f); | |
6 g = symfun(diff(f,varargin{:}), args); | |
7 end |